Use $broadcast(), $emit() and $on() in AngularJS

Posted by: Bipin Joshi.com :: Thoughts on .NET, Life, Yoga and more, on 18 May 2015 | View original | Bookmarked: 0 time(s)

AngularJS applications may need to communicate across the controllers. Such a communication might be needed to send notifications or to pass data between the controllers. Although there can be different approaches to achieve this goal, one that is readily available is the event system of $scope and $rootScope. Both of these objects - $scope and $rootScope - support three methods namely $broadcast(), $emit() and $on() that facilitate event driven publisher-subscriber model for sending notifications...

Category: Events | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 491 | Hits: 16

Similar Posts

  • Use $broadcast(), $emit() and $on() in AngularJS more
  • Idle Timeouts in RIA Services Authentication more
  • Migrating to Postgresql with my friend NHibernate more
  • Using SqlBulkCopy To Perform Efficient Bulk SQL Operations more
  • Formatting Text in RadControls for WinForms Q3 2009 more
  • Adding users to a TFS project when youre not on the domain more
  • IIS Media Services 3.0 more
  • Creating a Filtering User Interface With jQuery In a Web Forms Application: Part 1 more
  • "ADO.NET Entity data model" or "edmx" or "L2E" debug visualizer more
  • A proposed introduction... more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD