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 myBindedFunction = makeBindedFunction(myObject, myFunc); or am I wrong? 2014. november 19., szerda 14:40:34 UTC+1 időpontban Pawel Kozlowski a következőt írta: > > > 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 <allurias...@gmail.com > <javascript:>> 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 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 because you are subscribed to the Google > Groups > > "AngularJS" group. > > To unsubscribe from this group and stop receiving emails from it, send > an > > email to angular+u...@googlegroups.com <javascript:>. > > To post to this group, send email to ang...@googlegroups.com > <javascript:>. > > Visit this group at http://groups.google.com/group/angular. > > For more options, visit https://groups.google.com/d/optout. > > > > -- > AngularJS book: > http://www.packtpub.com/angularjs-web-application-development/book > Looking for bootstrap-based widget library for AngularJS? > http://angular-ui.github.com/bootstrap/ > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.