angular.bind (API in module ng )

Description

Returns a function which calls function fn bound to self (self becomes the this for fn). You can supply optional args that are are prebound to the function. This feature is also known as function currying.

Usage

angular.bind(self, fn, args);

Parameters

Returns

{function()}

Function that wraps the fn with all the specified bindings.