Skip to content

Instantly share code, notes, and snippets.

@tperrelli
Created July 8, 2018 18:53
Show Gist options
  • Save tperrelli/255011a2b71e75c7a1df898ac21c4ea0 to your computer and use it in GitHub Desktop.
Save tperrelli/255011a2b71e75c7a1df898ac21c4ea0 to your computer and use it in GitHub Desktop.
Loading route
'use strict';
/*================================================
Module - Main app module
================================================ */
angular.module('MedicareApp', ['ngRoute', 'MedicareApp.controllers', 'MedicareApp.services'])
.config(function($routeProvider, $locationProvider) {
$routeProvider
.when('/', {
templateUrl : 'views/scheduling.html',
controller : 'SchedulingController',
reloadOnSearch : false,
resolve : {
loginRequired : false
}
})
.otherwise({
redirectTo: '/'
});
$locationProvider.html5Mode({
enabled: true,
requireBase: false
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment