score:2

Accepted answer

you dont have to declare the module again, use the same module with two different controllers,

angular.module("app").controller("barctrl", function ($scope, $http) {
}

demo


Related Query