Here is a simple example of constructing a controller. What if I need to add the $location
in my controller?
e.g.
function ExampleCtrl($scope,$location){
$scope.data = "some data";
$location.path('/');
}
How should the array notation look like?