HI Rajesh,
Load your functions into an object, and extend the scope to include those
functions.
something like this:
$http.get('goGetFunctions')
.success(function (funcs) {
// here I'm assuming you know how to
// turn your funcs into an object like
// { myFunca: function(){...},
// myFuncb: function(){...}}
angular.extend($scope,funcs)
})
Of course if there is an function in there that ruins your data or app, you
have a serious problem. (or replaces one of your own scope functions for
example!!)
There is a serious security issue with this approach!
Regards
Sander
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.