Hi i am new to angular js i was gone through the angular api references,
i had seen function called angular.bind(self, fn, args); i don't know how
to use this function can explain any one with best example
looking for your's forward reply
Regards
Ashok kumar
--
You received this message bec
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind
Cheers,
Pawel
On Wed, Nov 19, 2014 at 2:38 PM, Ashok kumar wrote:
> Hi i am new to angular js i was gone through the angular api references,
> i had seen function called angular.bind(self, fn, args); i
Am I right if I say that it's basically the same like:
function makeBindedFunction(context, bindableFunc, args){
return bindableFunc.call(context, args);
}
//example:
var myObject = {
//stuffs
};
var myFunc = function(){
//stuffs
}
var myBindedFunction = makeBindedFunction(myObject,
Am I right if I say that it's basically the same like:
function makeBindedFunction(context, bindableFunc, args){
return function(){
return bindableFunc.call(context, args);
};
}
//example:
var myObject = {
//stuffs
};
var myFunc = function(){
//stuffs
}
var myBindedFunct