Allow to expose and use API between AngularJS (v1.5+) components.
Project based on Schweigi/angular-api-demo
Features
-
Allow to raise/catch events (from/to service, directive or controller).
- Example that declare an event in a service, then catched by a view controller:angular;// Any other components (service, controller) can be notifiedvar app = angular;app;
- Example that declare an event in a service, then catched by a view controller:
-
Allow async event, with Promise (e.g. to wait the end of event processing, cacth error, etc.).
-
Example, based on previous use case:
angular;app;
-