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
- Host: GitHub
- URL: https://github.com/cotag/angular-safeapply
- Owner: cotag
- Created: 2013-09-13T01:22:18.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2016-03-04T21:29:53.000Z (over 10 years ago)
- Last Synced: 2025-04-11T22:12:29.741Z (about 1 year ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 3
- Watchers: 5
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.textile
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() {});@