Skip to content

Instantly share code, notes, and snippets.

@oliverm2112
Last active December 16, 2015 02:29
Show Gist options
  • Save oliverm2112/5363419 to your computer and use it in GitHub Desktop.
Save oliverm2112/5363419 to your computer and use it in GitHub Desktop.
angular - base
var app = angular.module('ToDoApp', ['ui', 'ui.bootstrap']);
app.config(['$routeProvider', function ($routeProvider) {
$routeProvider
.when('/', {redirectTo : '/login'})
.when('/login', {templateUrl : 'view/partials/login.html', controller : 'LoginCtrl'})
.when('/list-patients', {templateUrl : 'view/partials/list-patients.html', controller : 'ListPatientsCtrl'})
.otherwise({redirectTo : '/login'})
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment