A Scope Wrapper for AngularJS
To get this amazing plugin to run on your AngularJS application, simple download the plugin via NPM or Source File.
Then include this in your AngularJS application.
As soon as the application is bootstrapped or set to a ng-app directive then the plugin can be used inside your scope variables.
To use the plugin, simple apply all your changes like so:
//use by itself$scope;//tell it which scope to update$scope;$scope;//pass in an update function that gets called when the digest is going on...$scope;//pass in both a scope and a function$scope;//call it on the rootScope$rootScope;$rootScope;$rootScope;$rootScope;$rootScope;
Be sure to install testacular via NPM (NodeJS) with the following command:
sudo npm install -g testacular
Then run this command at the root of the repo to test:
The test output should look like so:
Chrome 24.0: Executed X of X SUCCESS (0.123 secs / 0.123 secs)
... The challenges regarding $scope and $apply in AngularJS are talked about in more detail here: