forked from valor-software/ng2-file-upload
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Adrian Fâciu
committed
Sep 6, 2016
1 parent
22307d2
commit e9d356b
Showing
8 changed files
with
91 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { CommonModule } from '@angular/common'; | ||
import { NgModule } from '@angular/core'; | ||
|
||
import { FileDropDirective } from './file-drop.directive'; | ||
import { FileSelectDirective } from './file-select.directive'; | ||
|
||
@NgModule({ | ||
imports: [CommonModule], | ||
declarations: [FileDropDirective, FileSelectDirective], | ||
exports: [FileDropDirective, FileSelectDirective] | ||
}) | ||
export class FileUploadModule { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import {Component} from '@angular/core'; | ||
|
||
let gettingStarted = require('./getting-started.md'); | ||
|
||
@Component({ | ||
selector: 'app', | ||
template: ` | ||
<main class="bd-pageheader"> | ||
<div class="container"> | ||
<h1>ng2-file-upload</h1> | ||
<p>The Angular2 File Upload directives</p> | ||
<a class="btn btn-primary" href="https://github.com/valor-software/ng2-file-upload">View on GitHub</a> | ||
<div class="row"> | ||
<div class="col-lg-1"><iframe src="https://ghbtns.com/github-btn.html?user=valor-software&repo=ng2-file-upload&type=star&count=true" frameborder="0" scrolling="0" width="170px" height="20px"></iframe></div> | ||
<div class="col-lg-1"><iframe src="https://ghbtns.com/github-btn.html?user=valor-software&repo=ng2-file-upload&type=fork&count=true" frameborder="0" scrolling="0" width="170px" height="20px"></iframe></div> | ||
</div> | ||
</div> | ||
</main> | ||
<div class="container"> | ||
<section id="getting-started">${gettingStarted}</section> | ||
<file-upload-section class="col-md-12"></file-upload-section> | ||
</div> | ||
<footer class="footer"> | ||
<div class="container"> | ||
<p class="text-muted text-center"><a href="https://github.com/valor-software/ng2-file-upload">ng2-file-upload</a> is maintained by <a href="https://github.com/valor-software">valor-software</a>.</p> | ||
</div> | ||
</footer> | ||
` | ||
}) | ||
export class DemoComponent { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,4 @@ | ||
import {bootstrap} from '@angular/platform-browser-dynamic'; | ||
import {Component} from '@angular/core'; | ||
import {NgClass} from '@angular/common'; | ||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; | ||
import { NgFileUploadDemo } from './ng2-file-upload-demo.module'; | ||
|
||
import {FileUploadSectionComponent} from './components/file-upload-section'; | ||
|
||
let gettingStarted = require('./getting-started.md'); | ||
|
||
@Component({ | ||
selector: 'app', | ||
template: ` | ||
<main class="bd-pageheader"> | ||
<div class="container"> | ||
<h1>ng2-file-upload</h1> | ||
<p>The Angular2 File Upload directives</p> | ||
<a class="btn btn-primary" href="https://github.com/valor-software/ng2-file-upload">View on GitHub</a> | ||
<div class="row"> | ||
<div class="col-lg-1"><iframe src="https://ghbtns.com/github-btn.html?user=valor-software&repo=ng2-file-upload&type=star&count=true" frameborder="0" scrolling="0" width="170px" height="20px"></iframe></div> | ||
<div class="col-lg-1"><iframe src="https://ghbtns.com/github-btn.html?user=valor-software&repo=ng2-file-upload&type=fork&count=true" frameborder="0" scrolling="0" width="170px" height="20px"></iframe></div> | ||
</div> | ||
</div> | ||
</main> | ||
<div class="container"> | ||
<section id="getting-started">${gettingStarted}</section> | ||
<file-upload-section class="col-md-12"></file-upload-section> | ||
</div> | ||
<footer class="footer"> | ||
<div class="container"> | ||
<p class="text-muted text-center"><a href="https://github.com/valor-software/ng2-file-upload">ng2-file-upload</a> is maintained by <a href="https://github.com/valor-software">valor-software</a>.</p> | ||
</div> | ||
</footer> | ||
`, | ||
directives: [ | ||
NgClass, | ||
FileUploadSectionComponent | ||
] | ||
}) | ||
export class DemoComponent { | ||
} | ||
|
||
bootstrap(DemoComponent); | ||
platformBrowserDynamic().bootstrapModule(NgFileUploadDemo); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { CommonModule } from '@angular/common'; | ||
import { NgModule } from '@angular/core'; | ||
import { FormsModule } from '@angular/forms'; | ||
import { BrowserModule } from '@angular/platform-browser'; | ||
|
||
import { Ng2BootstrapModule } from 'ng2-bootstrap/ng2-bootstrap' | ||
import { FileUploadModule } from '../components/file-upload/file-upload.module'; | ||
import { DemoComponent } from './app.component.ts'; | ||
import { FileUploadSectionComponent } from './components/file-upload-section'; | ||
import { SimpleDemoComponent } from './components/file-upload/simple-demo'; | ||
|
||
@NgModule({ | ||
imports: [BrowserModule, CommonModule, FileUploadModule, Ng2BootstrapModule, FormsModule], | ||
declarations: [DemoComponent, FileUploadSectionComponent, SimpleDemoComponent], | ||
bootstrap: [DemoComponent] | ||
}) | ||
export class NgFileUploadDemo { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters