-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes 12
- Loading branch information
Showing
6 changed files
with
90 additions
and
15 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 |
---|---|---|
|
@@ -4,4 +4,5 @@ | |
<customise></customise> | ||
<events></events> | ||
<styles></styles> | ||
<uploaded></uploaded> | ||
</div> |
9 changes: 9 additions & 0 deletions
9
demo/src/app/demo/components/uploaded/uploaded.component.html
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,9 @@ | ||
<h4 class="mb-3 mt-3">Uploaded Usage</h4> | ||
|
||
<image-upload | ||
url="https://httpbin.org/status/200" | ||
[uploadedFiles]="images" | ||
(removed)="onRemoved($event)" | ||
></image-upload> | ||
|
||
<pre><code class="language-markup"><![CDATA[<image-upload url="https://httpbin.org/status/200" [uploadedFiles]="images"></image-upload>]]></code></pre> |
28 changes: 28 additions & 0 deletions
28
demo/src/app/demo/components/uploaded/uploaded.component.ts
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,28 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'uploaded', | ||
templateUrl: './uploaded.component.html' | ||
}) | ||
export class UploadedExampleComponent { | ||
myHeaders: { [name: string]: any } = { | ||
'Authorization': 'MyToken', | ||
'Another Header': 'AnotherValue' | ||
}; | ||
|
||
images = []; | ||
|
||
onRemoved(event){ | ||
console.log(event); | ||
} | ||
|
||
ngOnInit(){ | ||
setTimeout(()=>{ | ||
this.images = [ | ||
'https://static.independent.co.uk/s3fs-public/styles/story_medium/public/thumbnails/image/2016/10/11/14/beats-logo-1200-80.jpg', | ||
'https://s-media-cache-ak0.pinimg.com/originals/68/fb/c7/68fbc7bc9eb8c530c6e804c4109ec647.jpg', | ||
{fileName: 'google-image.jpg', url: 'https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png'} | ||
]; | ||
}, 1000); | ||
} | ||
} |
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