'use strict';

angular.module('myApp', [
  'ngRoute'
]).config(['$routeProvider', function($routeProvider) {
  //routes will be here
}]);

'use strict';

angular.module('myApp', [
  'ngRoute',
  'myApp.home'  //newly addded home module
]).config(['$routeProvider', function($routeProvider) {
  //routes will be here
  //set default view of app to home
  $routeProvider.otherwise({
    redirectTo: '/home'
  });
}]);



add home module to app.js file and set default route to the home view