yearofmoo / angularjs-scope.safeapply Goto Github PK
View Code? Open in Web Editor NEWAngularJS $scope.$apply() without the hassle and errors :)
AngularJS $scope.$apply() without the hassle and errors :)
Angular throws error when I minify script using uglifyJS:
app.js:2 Uncaught Error: [$injector:unpr] Unknown provider: tProvider <- t
It's useful when using require.
It is usable only by accessing $root, like so:
$scope.$root.$safeApply()
at AngularJS-Testing-Article npm install I get this error
bower angularjs-scope.safeapply#* error Arguments to path.join must be strings
Stack trace:
TypeError: Arguments to path.join must be strings
at path.js:360:15
at Array.filter (native)
at Object.exports.join (path.js:358:36)
at GitHubResolver.GitResolver._cleanup (/home/icarus/code/lab/AngularJS-Testing-Article/node_modules/bower/lib/core/resolvers/GitResolver.js:185:26)
at /home/icarus/code/lab/AngularJS-Testing-Article/node_modules/bower/lib/core/resolvers/GitResolver.js:74:25
at Promise.apply (/home/icarus/code/lab/AngularJS-Testing-Article/node_modules/bower/node_modules/q/q.js:1122:26)
at Promise.promise.promiseDispatch (/home/icarus/code/lab/AngularJS-Testing-Article/node_modules/bower/node_modules/q/q.js:752:41)
at /home/icarus/code/lab/AngularJS-Testing-Article/node_modules/bower/node_modules/q/q.js:1337:14
at flush (/home/icarus/code/lab/AngularJS-Testing-Article/node_modules/bower/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:419:13)
Console trace:
Trace
at StandardRenderer.error (/home/icarus/code/lab/AngularJS-Testing-Article/node_modules/bower/lib/renderers/StandardRenderer.js:74:17)
at Logger.updateNotifier.packageName (/home/icarus/code/lab/AngularJS-Testing-Article/node_modules/bower/bin/bower:109:18)
at Logger.emit (events.js:95:17)
at Logger.emit (/home/icarus/code/lab/AngularJS-Testing-Article/node_modules/bower/node_modules/bower-logger/lib/Logger.js:29:39)
at /home/icarus/code/lab/AngularJS-Testing-Article/node_modules/bower/lib/commands/install.js:27:16
at _rejected (/home/icarus/code/lab/AngularJS-Testing-Article/node_modules/bower/node_modules/q/q.js:808:24)
at /home/icarus/code/lab/AngularJS-Testing-Article/node_modules/bower/node_modules/q/q.js:834:30
at Promise.when (/home/icarus/code/lab/AngularJS-Testing-Article/node_modules/bower/node_modules/q/q.js:1079:31)
at Promise.promise.promiseDispatch (/home/icarus/code/lab/AngularJS-Testing-Article/node_modules/bower/node_modules/q/q.js:752:41)
at /home/icarus/code/lab/AngularJS-Testing-Article/node_modules/bower/node_modules/q/q.js:574:44
System info:
Bower version: 1.2.8
Node version: 0.10.29
OS: Linux 3.2.0-4-amd64 x64
You're listed as angularjs-scope.safeapply-good
in the bower registry because angularjs-scope.safeapply
has an invalid git url. Would you like me to remove -good
and update the other one to the right @url?
The module is not working when used together with ng-strict-di. This could easily be fixed by changing the first and last line to:
angular.module('Scope.safeApply', []).run(['$rootScope' , function($rootScope) {
...
}]);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.