
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 · 550 阅读 · 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 · 947 阅读 · 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 · 3776 阅读 · 0 评论