2015-08-31 30 views
-2

我是angularJs的新手。 我看到這個$ scope。$ on()函數。 我無法理解這一點。你能解釋一下我

+1

$範圍觸發事件。$上與$範圍。$廣播或$範圍配對。$放出。看到這個問題更多http://stackoverflow.com/questions/14502006/working-with-scope-emit-and-on – Harangue

+2

堆棧溢出不是一個通用的參考,但[你使用的工具有它自己]( https://docs.angularjs.org/guide/scope#scope-events-propagation)。 – Marty

回答

0

$scope.$on用於列出由

$scope.$broadcast 

$scope.$emit 
相關問題