input

作者: my木子 | 来源:发表于2018-08-07 15:46 被阅读0次

1、ngModel

<input type="text" placeholder="写点什么" [ngModel]="input.name" (ngModelChange)="input.name=$event">

2、定义模版引擎

    <input #myInput type="text">
    <input #myInput2 type="text">
  <h1 (click)="presentAlert(myInput.value,myInput2.value)" class="select">  {{title}}</h1>

相关文章

网友评论

      本文标题:input

      本文链接:https://www.haomeiwen.com/subject/zvlavftx.html