zr-dropdown-selection
v1.1.0
Published
This is a drop-down component
Downloads
2
Maintainers
Readme
About
This is a drop-down component
Installation
Install through npm:
npm install --save zr-dropdown-selection
Then include in your apps module:
import { NgModule } from '@angular/core';
import { ZrDropdownSelectionModule } from 'zr-dropdown-selection';
@NgModule({
imports: [
ZrDropdownSelectionModule.forRoot()
]
})
export class MyModule {}
Finally use in one of your apps components:
import { Component } from '@angular/core';
@Component({
template: `<zr-dropdown-selection [options]='options' [dropText]="'部门'" (selected)='handle1($event)'></zr-dropdown-selection>`
})
export class MyComponent {}