组件库
- 类似序列号填写的组件
- 联系人列表(正在开发)
npm install tl-angular --save
例如:添加类似序列号填写的组件,把SerialNumberModule
导入项目
import {SerialNumberModule} from "tl-angular";
@NgModule({
imports: [ /* ... */ SerialNumberModule],
declarations: [AppComponent],
bootstrap: [AppComponent]
})
export class AppModule {}
<serial-number
style="display: block"
[(ngModel)]="testSerial"
[readOnly]="false"
[size]="6"></serial-number>
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
testSerial='111'
}