cn-city-select
v0.0.5
Published
angular lib selecting China city
Downloads
3
Readme
cn-city-select
angular6 lib for selecting China city
使用方式
1. Install
npm install cn-city-select
2. Import
import { CnCitySelectModule } from 'cn-city-select';
@NgModule({
declarations: [],
imports: [
CnCitySelectModule
]
})
export class AppModule { };
3. Use in HTML
<app-cn-city-select [selected]="'默认值(可为空)'" (result)="citySelect($event)"></app-cn-city-select>
4. Function
citySelect(e){
console.log(e)
//{name: "省/市/区", value: "省编码/市编码/区编码"}
}