angular.bind

Work in Progress This page is currently being revised. It might be incomplete or contain inaccuracies.

Description

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.

Usage

angular.bind(self, fn, args);

Parameters

Returns

{function()}

Function that wraps the fn with all the specified bindings.