An open API service indexing awesome lists of open source software.

https://github.com/cotag/angular-safeapply

used to call back into angularjs from external libs
https://github.com/cotag/angular-safeapply

Last synced: about 1 year ago
JSON representation

used to call back into angularjs from external libs

Awesome Lists containing this project

README

          

h1. Safe Apply for AngularJS

Based on code from https://github.com/yearofmoo/AngularJS-Scope.SafeApply

# Open bower.json
# Add @"angular-safeapply": "~1.0.0"@ to your dependency list
# Run @bower install@
# In your application you can now add:
#* @@

h2. Usage

Add @SafeApply@ to your apps module dependancy list then

# on any scope: @$scope.$safeApply(function() { optionalFunction; });@
# or used as a service: @$safeApply($scope, function() {});@