diff --git a/ng2-components/ng2-alfresco-tag/README.md b/ng2-components/ng2-alfresco-tag/README.md index 19644d416c..a7519e00ea 100644 --- a/ng2-components/ng2-alfresco-tag/README.md +++ b/ng2-components/ng2-alfresco-tag/README.md @@ -86,7 +86,7 @@ In this component are present three different tags : * alfresco-tag-list * alfresco-tag-node-list -##### alfresco-tag-node-actions-list +## alfresco-tag-node-actions-list ```html @@ -96,13 +96,11 @@ In this component are present three different tags : import { Component, OnInit, Input } from '@angular/core'; import { bootstrap } from '@angular/platform-browser-dynamic'; import { HTTP_PROVIDERS } from '@angular/http'; - import { ALFRESCO_CORE_PROVIDERS, AlfrescoSettingsService, AlfrescoAuthenticationService } from 'ng2-alfresco-core'; - import { TAGCOMPONENT, TAGSERVICES } from 'ng2-alfresco-tag'; @Component({ @@ -112,7 +110,7 @@ import { TAGCOMPONENT, TAGSERVICES } from 'ng2-alfresco-tag'; `, - directives: [TAGCOMPONENT, CONTEXT_MENU_DIRECTIVES], + directives: [TAGCOMPONENT], providers: [TAGSERVICES] }) class TagDemo implements OnInit { @@ -159,12 +157,17 @@ bootstrap(TagDemo, [ HTTP_PROVIDERS, ALFRESCO_CORE_PROVIDERS ]); -``` +``` + +### Options +Attribute | Options | Default | Description | Mandatory +--- | --- | --- | --- | --- +`nodeId` | *string* | | The identifier of a node.| ![Custom columns](docs/assets/tag3.png) -##### alfresco-tag-node-list +## alfresco-tag-node-list ```html @@ -174,7 +177,6 @@ bootstrap(TagDemo, [ import { Component, OnInit, Input } from '@angular/core'; import { bootstrap } from '@angular/platform-browser-dynamic'; import { HTTP_PROVIDERS } from '@angular/http'; - import { ALFRESCO_CORE_PROVIDERS, AlfrescoSettingsService, @@ -190,7 +192,7 @@ import { TAGCOMPONENT, TAGSERVICES } from 'ng2-alfresco-tag'; `, - directives: [TAGCOMPONENT, CONTEXT_MENU_DIRECTIVES], + directives: [TAGCOMPONENT], providers: [TAGSERVICES] }) class TagDemo implements OnInit { @@ -239,9 +241,15 @@ bootstrap(TagDemo, [ ]); ``` +### Options + +Attribute | Options | Default | Description | Mandatory +--- | --- | --- | --- | --- +`nodeId` | *string* | | The identifier of a node.| + ![Custom columns](docs/assets/tag1.png) -##### alfresco-tag-list +## alfresco-tag-list ```html @@ -251,7 +259,6 @@ bootstrap(TagDemo, [ import { Component, OnInit, Input } from '@angular/core'; import { bootstrap } from '@angular/platform-browser-dynamic'; import { HTTP_PROVIDERS } from '@angular/http'; - import { ALFRESCO_CORE_PROVIDERS, AlfrescoSettingsService, @@ -267,7 +274,7 @@ import { TAGCOMPONENT, TAGSERVICES } from 'ng2-alfresco-tag'; `, - directives: [TAGCOMPONENT, CONTEXT_MENU_DIRECTIVES], + directives: [TAGCOMPONENT], providers: [TAGSERVICES] }) class TagDemo implements OnInit { diff --git a/ng2-components/ng2-alfresco-tag/demo/src/main.ts b/ng2-components/ng2-alfresco-tag/demo/src/main.ts index 14f5f22d1a..d7165ca997 100644 --- a/ng2-components/ng2-alfresco-tag/demo/src/main.ts +++ b/ng2-components/ng2-alfresco-tag/demo/src/main.ts @@ -52,7 +52,7 @@ import { TAGCOMPONENT, TAGSERVICES } from 'ng2-alfresco-tag'; `, - directives: [TAGCOMPONENT, CONTEXT_MENU_DIRECTIVES], + directives: [TAGCOMPONENT], providers: [TAGSERVICES] }) class TagDemo implements OnInit {