One of the features I miss the most in AngularJS is ability to easy unsubscribe event handlers. There is no convenience function opposed to $on, so in order to unsubscribe event, we have to call method returned by $on function (function () { angular.module('app.download', []) .controller('downloadCtrl', downloadController); function downloadController($scope) { // keep the unsubscribe function in local variable var afterRenderUnsubscribe = $scope.$on('afterRender', onAf...

Dziel się z innymi:
[EN] AngularJS - extending existing services using decorator

Web 3548 dni, 1 godzinę, 32 minuty temu nocturn 84 pokaż kod licznika zwiń

Wczytywanie artykułów...