Angular知識點

1.不要複用controller,一個controller負責一小塊 2.controller裏不要操做DOM,DOM操做要用directive(操做view), 3.不要在controller裏作數據格式化,ng有更好的表單控件 4.不要在controller裏作數據過濾操做,ng有$filter服務 5.controller不會相互調用,控制器的交互經過事件進行angularjs 特徵 1.採
相關文章
相關標籤/搜索