angular.bind

angular.bind

: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.angularjs

Usage

angular.bind(self, fn, args);api

Param Type Details
self Object

Context which fn should be evaluated in.app

fn function()

Function to be bound.ui

args *

Optional arguments to be prebound to the fn function call.this

 

Returns

function()

Function that wraps the fn with all the specified bindings.lua

相关文章
相关标签/搜索