ngMock.$httpBackend.expectJSONP()

expectJSONP(url, [keys]); Creates a new request expectation for JSONP requests. For more info see expect(). Parameters Param Type Details url stringRegExpfunction(string) HTTP url or function that receives an url and returns true if the url matches the current definition. keys (optional) Array Array of keys to assign to regex matches in request url described above. Returns requestHandler Returns an object with respond method that controls how a matched request is handled. You c

angular.bind

function in module ng Returns a function which calls function fn bound to self (self becomes the this for fn). You can supply optional args that are prebound to the function. This feature is also known as partial application, as distinguished from function currying. Usage angular.bind(self, fn, args); Arguments Param Type Details self Object Context which fn should be evaluated in. fn function() Function to be bound. args * Optional arguments to be prebound to the fn fun

angular.reloadWithDebugInfo

function in module ng Use this function to reload the current application with debug information turned on. This takes precedence over a call to $compileProvider.debugInfoEnabled(false). See $compileProvider for more.

ngMock.$interval.cancel()

cancel(promise); Cancels a task associated with the promise. Parameters Param Type Details promise promise A promise from calling the $interval function. Returns boolean Returns true if the task was successfully cancelled.

ngMock.$timeout.flush()

flush([delay]); Flushes the queue of pending tasks. Parameters Param Type Details delay (optional) number maximum timeout amount to flush up until

ngSubmit

directive in module ng Enables binding angular expressions to onsubmit events. Additionally it prevents the default action (which for form means sending the request to the server and reloading the current page), but only if the form does not contain action, data-action, or x-action attributes. Warning: Be careful not to cause "double-submission" by using both the ngClick and ngSubmit handlers together. See the form directive documentation for a detailed discussion of when ngSubmit may be

ngCut

directive in module ng Specify custom behavior on cut event. Directive Info This directive executes at priority level 0. Usage as attribute: <window, input, select, textarea, a ng-cut="expression"> ... </window, input, select, textarea, a> Arguments Param Type Details ngCut expression Expression to evaluate upon cut. (Event object is available as $event)

ngMouseenter

directive in module ng Specify custom behavior on mouseenter event. Directive Info This directive executes at priority level 0. Usage as attribute: <ANY ng-mouseenter="expression"> ... </ANY> Arguments Param Type Details ngMouseenter expression Expression to evaluate upon mouseenter. (Event object is available as $event)

ngRequired

directive in module ng ngRequired adds the required validator to ngModel. It is most often used for input and select controls, but can also be applied to custom controls. The directive sets the required attribute on the element if the Angular expression inside ngRequired evaluates to true. A special directive for setting required is necessary because we cannot use interpolation inside required. See the interpolation guide for more info. The validator will set the required error key to true

ngCookies.$cookies.getObject()

getObject(key); Returns the deserialized value of given cookie key Parameters Param Type Details key string Id to use for lookup. Returns Object Deserialized cookie value.