var mainApp = angular.module(“mainApp”, [‘ngRoute’]);
mainApp.config([‘$routeProvider’, function($routeProvider) {
$routeProvider.
when(‘/addEmployee’, {
templateUrl: ‘addEmployee.htm’, controller: ‘AddEmployeeController’
}).
otherwise({
redirectTo: ‘/addEmployee’
});
}]);

Leave a Reply

Your email address will not be published. Required fields are marked *