$animate.enabled()

enabled([element], [enabled]); Used to get and set whether animations are enabled or not on the entire application or on an element and its children. This function can be called in four ways: // returns true or false $animate.enabled(); // changes the enabled state for all animations $animate.enabled(false); $animate.enabled(true); // returns true or false if animations are enabled for an element $animate.enabled(element); // changes the enabled state for an element and its children $animat

form.FormController.$setSubmitted()

$setSubmitted(); Sets the form to its submitted state.

$sce.trustAsHtml()

trustAsHtml(value); Shorthand method. $sce.trustAsHtml(value) â $sceDelegate.trustAs($sce.HTML, value) Parameters Param Type Details value * The value to trustAs. Returns * An object that can be passed to $sce.getTrustedHtml(value) to obtain the original value. (privileged directives only accept expressions that are either literal constants or are the return value of $sce.trustAs.)

ngMock.$httpBackend.whenPUT()

whenPUT(url, [data], [headers], [keys]); Creates a new backend definition for PUT requests. For more info see when(). Parameters Param Type Details url stringRegExpfunction(string) HTTP url or function that receives a url and returns true if the url matches the current definition. data (optional) stringRegExpfunction(string) HTTP request body or function that receives data string and returns true if the data is as expected. headers (optional) Objectfunction(Object) HTTP heade

ngMock.$exceptionHandlerProvider.mode()

mode(mode); Sets the logging mode. Parameters Param Type Details mode string Mode of operation, defaults to rethrow. log: Sometimes it is desirable to test that an error is thrown, for this case the logmode stores an array of errors in `$exceptionHandler.errors`, to allow later assertion of them. See assertEmpty() and reset() rethrow: If any errors are passed to the handler in tests, it typically means that thereis a bug in the application or test, so this mock will make these tests

ngComponentRouter.ComponentInstruction

type in module ngComponentRouter A ComponentInstruction represents the route state for a single component. An Instruction is composed of a tree of these ComponentInstructions. ComponentInstructions is a public API. Instances of ComponentInstruction are passed to route lifecycle hooks, like $routerCanActivate. You should not modify this object. It should be treated as immutable.

orderBy

filter in module ng Orders a specified array by the expression predicate. It is ordered alphabetically for strings and numerically for numbers. Note: if you notice numbers are not being sorted as expected, make sure they are actually being saved as numbers and not strings. Array-like values (e.g. NodeLists, jQuery objects, TypedArrays, Strings, etc) are also supported. Usage In HTML Template Binding {{ orderBy_expression | orderBy : expression : reverse}} In JavaScript $filter('orderBy')

$sce.trustAs()

trustAs(type, value); Delegates to $sceDelegate.trustAs. As such, returns an object that is trusted by angular for use in specified strict contextual escaping contexts (such as ng-bind-html, ng-include, any src attribute interpolation, any dom event binding attribute interpolation such as for onclick, etc.) that uses the provided value. See * $sce for enabling strict contextual escaping. Parameters Param Type Details type string The kind of context in which this value is safe for use. e.

angular.Module.value()

value(name, object); See $provide.value(). Parameters Param Type Details name string service name object * Service instance object.

angular.Module.component()

component(name, options); See $compileProvider.component(). Parameters Param Type Details name string Name of the component in camel-case (i.e. myComp which will match as my-comp) options Object Component definition object (a simplified directive definition object)