angularJS自定义指令详解

AngularJS指令在HTML代码中能够有四种表现形式: 一、做为一个新的HTML元素来使用。 <hello></hello>或者<hello/> 二、做为一个元素的属性来使用css <div hello></div> 三、做为一个元素的类来使用html <div class="hello"></div> 四、做为注释来使用app <!--directive: hello --> 既然指令有以
相关文章
相关标签/搜索