码迷,mamicode.com
首页 > 其他好文 > 详细

入门angular4

时间:2017-07-13 23:41:16      阅读:186      评论:0      收藏:0      [点我收藏+]

标签:body   特性   ble   htm   style   center   border   att   enter   

1. 语法

  attribute property
绑定属性 [] bind-
绑定事件 () on-
双向绑定 [()] bindon-

绑定属性:[attr.xxx] [class.xxx] [style.xxx]

  • property是DOM中的属性,是JavaScript里的对象;
  • attribute是HTML标签上的特性,它的值只能够是字符串

 

2. 规范

  类、大驼峰命名法

入门angular4

标签:body   特性   ble   htm   style   center   border   att   enter   

原文地址:http://www.cnblogs.com/peiling-home/p/7163436.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!