angular
陌上浮屠
这个作者很懒,什么都没留下…
展开
-
angular用户输入
1:通过 $event 对象取得用户输入 <input (keyup)="onKey($event)"> <input (keyup)="onKey2($event)"> TS文件 onKey(event: any) { this.values += event.target.value + ' | '; }转载 2018-10-22 13:38:38 · 482 阅读 · 0 评论 -
管道
2:管道 <p>The hero's birthday is {{ birthday | date:format | uppercase }}</p> <button (click)="toggleFormat()">Toggle Format</button> export cla转载 2018-10-22 19:02:03 · 876 阅读 · 0 评论 -
模板语法
1: 2: 3:attribute 绑定 4:CSS类 <div class="bad curly special" [class]="badCurly">Bad curly</div> 5:样式绑定 6:事件绑定 7:双向数据绑定 未完待续 ...转载 2018-10-22 19:34:11 · 3721 阅读 · 0 评论