diff --git a/ng2-components/ng2-alfresco-upload/README.md b/ng2-components/ng2-alfresco-upload/README.md index fc077510c5..d6393c7f9e 100644 --- a/ng2-components/ng2-alfresco-upload/README.md +++ b/ng2-components/ng2-alfresco-upload/README.md @@ -44,6 +44,28 @@ This component, provide a buttons to upload files to alfresco. [acceptedFilesType]="*"> ``` + +Example of a component that declares upload component : + + +```ts +import { Component } from 'angular2/core'; +import { ALFRESCO_ULPOAD_COMPONENT } from 'ng2-alfresco-upload/ng2-alfresco-upload'; + +@Component({ + selector: 'my-view', + template: ` + `, + directives: [ALFRESCO_ULPOAD_COMPONENT] +}) +export class MyView { + +} +``` #### Options **showDialogUpload**: {boolean} optional) default true. Hide/show upload dialog.