app.js 298 B

1234567891011
  1. var app = angular.module('angularProject',['ngRoute','ngAnimate']);
  2. app.config(['$routeProvider', function($routeProvider){
  3. $routeProvider
  4. .when('/',{
  5. templateUrl: './app/views/main-page.html',
  6. controller: 'MainPageController'
  7. }).otherwise({
  8. redirectTo: '/'
  9. })
  10. }])