UNPKG

ng-ytl-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

18 lines (14 loc) 400 B
import { Component } from '@angular/core'; @Component({ selector: 'nz-demo-input-basic', template: ` <nz-input [(ngModel)]="inputValue" [nzPlaceHolder]="'Basic usage'" (ngModelChange)="_console($event)"></nz-input> <p>{{inputValue}}</p>`, styles: [] }) export class NzDemoInputBasicComponent { inputValue: string; _console(value) { console.log(value); } }