摘要:
绑定类型 绑定类型可以按照数据流的方向分为三类:从源到视图,从视图到源,以及双向序列 示例 <!-- Bind button disabled state to `isUnchanged` property --> <button [disabled]="isUnchanged">Save</but 阅读全文
posted @ 2018-03-01 15:26
Lulus
阅读(1739)
评论(0)
推荐(0)
摘要:
双花括号{{}} <img src="{{heroImageUrl}}" style="height:30px"> <!-- "The sum of 1 + 1 is 2" --> <p>The sum of 1 + 1 is {{1 + 1}}</p> <!-- "The sum of 1 + 1 阅读全文
posted @ 2018-03-01 15:25
Lulus
阅读(588)
评论(0)
推荐(0)
摘要:
双花括号{{}} 展示数据 title = 'Tour of Heroes'; myHero = 'Windstorm'; <h1>{{title}}</h1> <h2>My favorite hero is: {{myHero}}</h2> *ngFor 展示列表 heroes = ['Winds 阅读全文
posted @ 2018-03-01 15:25
Lulus
阅读(1561)
评论(0)
推荐(0)
摘要:
安装Node 先去Node官网下载并安装Node.js Install the Angular CLI(安装Angular CLI) Create a new application(创建新项目) Serve the application(启动项目) Create the component(创建 阅读全文
posted @ 2018-03-01 15:25
Lulus
阅读(1277)
评论(0)
推荐(0)

浙公网安备 33010602011771号