I need help with this angular script
(function() {
'use strict';
var myApp = angular.module('MyApp', [
'ngRoute',
'MyApp.controllers.Main'
]);
myApp .config(['$routeProvider',
function($routeProvider){
$routeProvider.
when('/',{
templateUrl: '../templates/home.html',
controller: 'homeController'
}).
when('/one',{
templateUrl: '../templates/one.html',
controller: 'oneController'
}).
when('/two',{
templateUrl: '../templates/two.html',
controller: 'twoController'
});
}]);
})();
After running jshint, I encountered the following errors:
src/app/app.js: line 27, col 5, Expected an identifier but found '}'.
src/app/app.js: line 27, col 5, Expected an assignment or function call but got an expression instead.
src/app/app.js: line 27, col 6, Semicolon missing.
src/app/app.js: line 27, col 6, Expected an identifier but saw ']'.
src/app/app.js: line 27, col 6, Expected an assignment or function call but got an expression instead.
src/app/app.js: line 27, col 7, Semicolon missing.
src/app/app.js: line 27, col 7, Expected an identifier but found ')'.
src/app/app.js: line 27, col 7, Expected an assignment or function call but got an expression instead.
src/app/app.js: line 29, col 2, ']' should match '[' from line 9 but found ')'.
src/app/app.js: line 29, col 5, ')' expected but '; found.
src/app/app.js: line 29, col 6, Semicolon missing.
src/app/app.js: line 1, col 13, Opening brace not matched.
src/app/app.js: line 29, col 10, Unrecoverable syntax error. (100% scanned).
I'm struggling to understand how to fix these jshint errors in my angular code.