Skip to content

Instantly share code, notes, and snippets.

@jonatasfreitasv
Created April 17, 2015 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonatasfreitasv/17b0d739e66921505d23 to your computer and use it in GitHub Desktop.
Save jonatasfreitasv/17b0d739e66921505d23 to your computer and use it in GitHub Desktop.
app.js
var app = angular.module('controlacar', ['ngRoute'], ['shared']);
app.config(['$routeProvider', '$locationProvider', function($routeProvider,$locationProvider) {
$locationProvider.hashPrefix('!');
$routeProvider
.when('/', {
templateUrl: 'components/login/form.html'
})
.when('/dashboard', {
templateUrl: 'components/dashboard/page.html'
})
.when('/messages', {
templateUrl: 'components/messages/page.html'
});
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment