Skip to content

Instantly share code, notes, and snippets.

@mgonto
Created May 19, 2013 01:59
Show Gist options
  • Save mgonto/5606366 to your computer and use it in GitHub Desktop.
Save mgonto/5606366 to your computer and use it in GitHub Desktop.
Proposed app.js
'use strict';
/**
* Application start point.
*
* Note, we use minifyer, so all dependencies should be explicitly defined with ['<dependency>',
* function(<dependency>) {}];
*/
var module = angular.module('example',
[ 'restangular', 'ngResource']).config(
['$routeProvider', '$locationProvider',
function($routeProvider, $locationProvider) {
$routeProvider
.when('/test/firstTab',
{
templateUrl: '/js/test/angular/views/firstTab.html',
controller: 'FirstTabCtrl'
})
.when('/test/secondTab',
{
templateUrl: '/js/test/angular/views/secondTab.html',
controller: 'SecondTabCtrl'
})
.otherwise({
redirectTo: '/test/firstTab'
});
$locationProvider.html5Mode(true);
} ]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment