入门angular4

1. 语法

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

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

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

 

2. 规范

  类 -大驼峰命名法

posted @ 2017-07-13 22:25  夏目桑  阅读(151)  评论(0编辑  收藏  举报