Currently, I am attempting to develop a sample Angular application with .Net in order to understand how to connect the two technologies. However, I have been encountering an error related to injector::modulerr that I cannot seem to resolve. Despite trying various solutions such as adjusting dependencies and eliminating empty brackets, the error persists. To maintain clarity in this discussion, I have created a plunker demo which can be accessed through the following link:
http://plnkr.co/edit/5AHsUSrFib4dkiX6XjLY?p=preview
I believe the issue may stem from the following code snippet:
angular.module('angularTest', ['ngRoute']).config(['$routeProvider', '$routeParams', '$httpProvider',
function ($routeProvider, $routeParams, $httpProvider) {
console.log('1');
$routeProvider.
when('/routeOne', {
templateUrl: 'routesDemo/one'
})
.when('/routeTwo/:donuts', {
templateUrl: function (params) { return '/routesDemo/two?donuts=' + params.donuts }
})
.when('/routeThree', {
templateUrl: 'routesDemo/three'
})
.when('/login?returnUrl', {
templateUrl: '/Account/Login',
controller: LoginController
});
console.log('2');
$httpProvider.interceptors.push('AuthHttpResponseInterceptor');
}
]);
Thank you for taking the time to review this.