diff --git a/README.md b/README.md index 8134e4c..cb3c791 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,14 @@ -# angular2-tag-input +# angular2-tags Tag input component for Angular 2 -## Demo & Examples -[View Demo](http://www.webpackbin.com/EkDO0p3Ab) +#update +Updated to angular4 + +Added maxSize ## Quick Start ``` -npm install angular2-tag-input --save +npm install angular2-tags --save ``` ``` @@ -40,6 +42,7 @@ export class YourModule {} | `autocompleteMustMatch` | `boolean` | `true` | Whether a tag must be present in the suggestions list to be valid | | `autocompleteSelectFirstItem` | `boolean` | `true` | Pre-highlight the first item in the suggestions list | | `placeholder` | `string` | `'Add a tag'` | Placeholder for the `` tag. | +| `maxSize` | `number` | `''` | Sets a max number of tags. | ### Outputs diff --git a/lib/components/tag-input/tag-input.component.ts b/lib/components/tag-input/tag-input.component.ts index d1f23e7..c73a0a0 100644 --- a/lib/components/tag-input/tag-input.component.ts +++ b/lib/components/tag-input/tag-input.component.ts @@ -37,7 +37,7 @@ export interface AutoCompleteItem { (tagRemoved)="_removeTag($event)" *ngFor="let tag of tagsList; let index = index"> -