i am trying to route in angular.js (1.3.15)and getting these two errors :
error messages
1-WARNING: Tried to load angular more than once. 2-angular.js:38Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.3.15/$injector/modulerr?p0=after_login& p1=Err…0d%20(http%3A%2F %2Flocalhost%3A49062%2FScripts%2Fangular.min.js%3A17%3A381)
my module.js
var after_login = angular.module("after_login", ['ngRoute', 'CrackWeb']);
after_login.config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/groups',
{
templateUrl: 'Views/p1.cshtml',
controller: 'MyScripts/groups'
})
.otherwise(
{
redirectTo: '/'
});
$locationProvider.html5Mode(true).hashPrefix('!');
}]);
in my html page with ng-app i have written.
p1.cshtml [ partial ]
<div class="col-md-9">
<br />
<input ng-model="check" id="ch"/>
{{check}}
<div ng-view></div>
</div>
Can anyone help ?