This code gives me Error: [$injector:unpr] Unknown provider: $scope, $locationProvider <- $scope, $location.
var app = angular.module('myApp.controllers', []);
app.controller('Signup', ['$scope, $location', function($scope, $location) {
$scope.checkEmailValid = function(){
$location.path('/view2');
};
}]);
Am I missing something about how to introduce a location service? I have not configured $ locationProvider, but doing this does not seem to help.
Knewb source
share