(function() {
'use strict';
const app = angular.module('MNCApp', ['ngRoute']);
app.config(['$routeProvider',
 function($routeProvider) {
   $routeProvider
   // .when('/songs', {
   //      templateUrl: 'index.html',
   //      controller: 'indexCtrl'
   //    })
   .when('/songs/list', {  // when URL ends with this
     templateUrl: 'views/songList.html',
     controller: 'SingerCtrl'
   })
   .when('/songs/form', {  // when URL ends with this
     templateUrl: 'views/songForm.html',
     controller: 'formCtrl'
   })
    .when('/songs/details/:songId', {  // gets matched in controller to href defined in songs-list partial: href="#/songs/{{ song.$id }}
      templateUrl: 'views/songDetails.html',
      controller: 'SongDetailCtrl'
    })
    // .when('/songs/delete', {
    //   templateUrl: 'views/songList.html',
    //   controller: 'songDeleteCtrl'
    // })
    // .when('/songs/filter', {
    //   templateUrl: 'views/songFilter.html',
    //   controller: 'songFilterCtrl'
    // })
   .otherwise('/songs/list'); // catch-all
 }]);
})();

(function() {
'use strict';
const app = angular.module('MNCApp', ['ngRoute']);
app.config(['$routeProvider',
 function($routeProvider) {
   $routeProvider
   // .when('/songs', {
   //      templateUrl: 'index.html',
   //      controller: 'indexCtrl'
   //    })
   .when('/songs/list', {  // when URL ends with this
     templateUrl: 'views/songList.html',
     controller: 'SingerCtrl'
   })
   .when('/songs/form', {  // when URL ends with this
     templateUrl: 'views/songForm.html',
     controller: 'SingerCtrl'
   })
   .when('/data/submit', {  // when URL ends with this
     templateUrl: 'views/songForm.html',
     controller: 'formCtrl'
   })
    .when('/songs/details/:songId', {  // gets matched in controller to href defined in songs-list partial: href="#/songs/{{ song.$id }}
      templateUrl: 'views/songDetails.html',
      controller: 'SongDetailCtrl'
    })
    // .when('/songs/delete', {
    //   templateUrl: 'views/songList.html',
    //   controller: 'songDeleteCtrl'
    // })
    // .when('/songs/filter', {
    //   templateUrl: 'views/songFilter.html',
    //   controller: 'songFilterCtrl'
    // })
   .otherwise('/songs/list'); // catch-all
 }]);
})();

add route for submitting info