$apply([exp]); $apply() is used to execute an expression in angular from outside of the angular framework. (For example
Installation First include angular-resource.js in your HTML: <script
This section briefly touches on all of the important parts of AngularJS using a simple example. For a more in-depth explanation, see the tutorial.
constant(name, value); Register a constant service with the $injector, such as a string, a number, an array, an object
directive in module ng
$rootScopeProvider
service in module ng
function in module ng
resetExpectations(); Resets all request expectations, but preserves all backend definitions. Typically, you would call resetExpectations
directive(name, directiveFactory); Register a new directive with the compiler. Parameters
Page 29 of 55