I am trying to define controllers in separate files, but I\'m getting the error:
transactionsController not a function got undefined
You Can put this controller in seprate file like mycontroller1.js
app.controller('myController', ['$scope',function($scope)
{
$scope.myValue='hello World'
}])
Same like this you can create new js file 'myNewcontroller.js' and can put new controller :
app.controller('myController2', ['$scope',function($scope) { $scope.myValue='hello World' }])
Hope this will help you :) Cheers !!