angular.copy

function in module ng Creates a deep copy of source, which should be an object or an array. If no destination is supplied, a copy of the object or array is created. If a destination is provided, all of its elements (for arrays) or properties (for objects) are deleted and then all elements/properties from the source are copied to it. If source is not an object or array (inc. null and undefined), source is returned. If source is identical to 'destination' an exception will be thrown. Usage

ngMock.type

Name Description angular.mock.TzDate NOTE: this is not an injectable instance, just a globally available mock class of Date. $rootScope.Scope Scope type decorated with helper methods useful for testing. These methods are automatically available on any Scope instance when ngMock module is loaded.

ngMock.$log.error.logs

error.logs Array of messages logged using error().

ngModel.NgModelController.$parsers

$parsers Array.<Function> Array of functions to execute, as a pipeline, whenever the control reads value from the DOM. The functions are called in array order, each passing its return value through to the next. The last return value is forwarded to the $validators collection. Parsers are used to sanitize / convert the $viewValue. Returning undefined from a parser means a parse error occurred. In that case, no $validators will run and the ngModel will be set to undefined unless ngModelOpt

$http.jsonp()

jsonp(url, [config]); Shortcut method to perform JSONP request. Parameters Param Type Details url string Relative or absolute URL specifying the destination of the request. The name of the callback should be the string JSON_CALLBACK. config (optional) Object Optional configuration object Returns HttpPromise Future object

auto.$provide.provider()

provider(name, provider); Register a provider function with the $injector. Provider functions are constructor functions, whose instances are responsible for "providing" a factory for a service. Service provider names start with the name of the service they provide followed by Provider. For example, the $log service has a provider called $logProvider. Service provider objects can have additional methods which allow configuration of the provider and its service. Importantly, you can configure wh

angular.Module.value()

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

$interpolate.startSymbol()

startSymbol(); Symbol to denote the start of expression in the interpolated string. Defaults to {{. Use $interpolateProvider.startSymbol to change the symbol. Returns string start symbol.

ngMock.$httpBackend.expectPUT()

expectPUT(url, [data], [headers], [keys]); Creates a new request expectation for PUT requests. For more info see expect(). 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)Object HTTP request body or function that receives data string and returns true if the data is as expected, or Object if request body is in JSON format.

$compileProvider.onChangesTtl()

onChangesTtl(limit); Sets the number of times $onChanges hooks can trigger new changes before giving up and assuming that the model is unstable. The current default is 10 iterations. In complex applications it's possible that dependencies between $onChanges hooks and bindings will result in several iterations of calls to these hooks. However if an application needs more than the default 10 iterations to stabilize then you should investigate what is causing the model to continuously change duri