angular2-material-chips
v1.0.5
Published
Angular 2 Material Chips Directive/Component with no dependencies required. This is a Material Chips Directive/Component for Angular 2.
Downloads
5
Readme
angular2-material-chips
Angular 2 Material Chips Directive/Component with no dependencies required. This is a Material Chips Directive/Component for Angular 2.
Demo page
http://shootermv.github.io/angular2-material-chips/examples/index.html
Installation
npm i --save angular2-material-chips
Usage
- Use it in your HTML elements, for example:
<material-chips [(ngModel)]="tags" ></material-chips>
- Add in your app.component.ts:
export class AppComponent {
tags:string[] = ['AngularJS','Angluar2']
}
- Add MaterialChipsModule in your app.module.ts:
import {MaterialChipsModule} from 'angular2-material-chips';
@NgModule({
...
imports: [BrowserModule, MaterialChipsModule, FormsModule]
})
#Build & Test
git clone https://github.com/shootermv/angular2-material-chips.git
npm install
cd angular2-material-chips
gulp
gulp copylib
cd examples-webpack
npm install
npm start