angularJS自定義指令詳解

AngularJS指令在HTML代碼中能夠有四種表現形式: 一、做爲一個新的HTML元素來使用。 <hello></hello>或者<hello/> 二、做爲一個元素的屬性來使用css <div hello></div> 三、做爲一個元素的類來使用html <div class="hello"></div> 四、做爲註釋來使用app <!--directive: hello --> 既然指令有以
相關文章
相關標籤/搜索