Hi, Is there a clean / official way to extend the scope prototype to append some features (as we can do with jQuery...)
I'm near to use this but, my approach is like a rape... angular.module('Gojob') .run(function ($rootScope) { $rootScope.constructor.prototype.$watchOnce = function (watchExpression, fn, objectEquality) { var unwatch = this.$watch(watchExpression, function (value) { if (value !== undefined) { unwatch(); fn.apply(this, arguments); } }, objectEquality); return unwatch; }; }); -- 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 https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.