angular 之 控制器 controller詳解

介紹 controller 以前首先介紹下 scope和 rootscope 的區別php scope 和 $rootscope 無論rootscope 仍是 scope ,都是html 和 controller 之間的橋樑,數據綁定都是經過 他們來綁定的 簡單來講,scope 至關於局部變量,rootscope 至關於全局變量,意思就是scope只針對單個的控制器,rootscope 針對全部的
相關文章
相關標籤/搜索