I am using this simple script in my website but its throwing error in console as "maximum call stack size exceeded"
var myapp = angular.module("myApp", ['ngRoute']);
myapp.config(['$routeProvider', '$locationProvider', function ($routeProvider, $locationProvider) {
//$locationProvider.html5mode(true);
$routeProvider
.when('/', {
templateUrl: 'index.html',
}).when('/contact',
templateUrl: 'contact.html',
}).when('/google', {
templateUrl: 'http://www.google.co.in'
}).otherwise({
redirectTo: '/'
});
}]);