[AngularJS] How to use angular.bind(); function?

2014-11-19 Thread Ashok kumar
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

Re: [AngularJS] How to use angular.bind(); function?

2014-11-19 Thread Pawel Kozlowski
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

Re: [AngularJS] How to use angular.bind(); function?

2015-03-28 Thread István Fodor
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,

Re: [AngularJS] How to use angular.bind(); function?

2015-03-28 Thread István Fodor
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