Returns function which calls function fn
bound to self
(self
becomes the this
for fn
).
Optional args
can be supplied which are prebound to the function, also known as
function currying.
angular.bind(self, fn, args);
self – {Object} –
Context in which fn
should be evaluated in.
fn – {function()} –
Function to be bound.
args – {...*} –
Optional arguments to be prebound to the fn
function call.
{function()}
– Function that wraps the fn
with all the specified bindings.