angular-member-picker
v0.0.4
Published
```ruby npm install angular-member-picker ``` ## Usage ```ruby import {BrowserModule} from '@angular/platform-browser'; import {NgModule} from '@angular/core'; import {CommonModule} from '@angular/common'; import {FormsModule} from '@angular/forms
Downloads
8
Readme
angular-member-picker
Installation
npm install angular-member-picker
Usage
import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {FormsModule} from '@angular/forms';
import {AppComponent} from './app.component';
import {MemberPickerModule} from 'angular-member-picker';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
CommonModule,
FormsModule,
MemberPickerModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {
}
/*
userList [[enName, enName(zhName)], [enName1, enName1(zhName1)]]
maxMemberCount: number 输入最大人数
*/
<ng-member-picker [userList]="userList" [(ngModel)]="value" [maxMemberCount]="maxCount"></ng-member-picker>