wahengjavascript

2015年11月10日 星期二

angular js $emit , $on


example
http://www.bennadel.com/blog/2723-unbinding-scope-on-event-handlers-in-angularjs.htm


 $scope.$emit('name', 'args');


   $scope.$broadcast('name', 'args');
張貼者: Peter 於 晚上7:54
以電子郵件傳送這篇文章BlogThis!分享至 X分享至 Facebook分享到 Pinterest

沒有留言:

張貼留言

較新的文章 較舊的文章 首頁
訂閱: 張貼留言 (Atom)

關於我自己

Peter
檢視我的完整簡介

網誌存檔

  • ►  2016 (60)
    • ►  10月 (2)
    • ►  9月 (2)
    • ►  8月 (12)
    • ►  7月 (8)
    • ►  6月 (3)
    • ►  5月 (3)
    • ►  4月 (6)
    • ►  3月 (10)
    • ►  2月 (11)
    • ►  1月 (3)
  • ▼  2015 (80)
    • ►  12月 (6)
    • ▼  11月 (12)
      • ng-click angularjs parameters problem
      • angularjs factory return problem null undefined
      • wordpress The requested document was not found on ...
      • mysql GREAT data base superuser
      • angularjs date
      • angularjs , log in redirect ng-router
      • angular js Dependency injection
      • angularness factory vs service
      • angular js $emit , $on
      • angular js did not update
      • create project by yo
      • angularjs complied order ,structure
    • ►  10月 (6)
    • ►  9月 (9)
    • ►  8月 (15)
    • ►  6月 (10)
    • ►  5月 (2)
    • ►  4月 (5)
    • ►  3月 (10)
    • ►  2月 (5)
簡單主題. 技術提供:Blogger.