Answer the question
In order to leave comments, you need to log in
How to extend another controller in Angularjs?
Hello. I have two absolutely identical controllers.
The only difference is vm.postStatus = 'ready' and vm.postStatus = 'live';
How do I do:
angular.extend(this, $controller('feedController', {$scope: $scope, vm: vm}));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question