Skip to content

Instantly share code, notes, and snippets.

@gregorypierce
Created April 2, 2014 01:58
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 gregorypierce/9926722 to your computer and use it in GitHub Desktop.
Save gregorypierce/9926722 to your computer and use it in GitHub Desktop.
angular.module('app', ['ui.compat'])
.config(['$stateProvider', function ($stateProvider) {
var home = {
name: 'home',
url: '/',
templateUrl: 'content.html'
},
red = {
name: 'red',
url: '/red',
parent: home,
templateUrl: 'content.red.html'
},
blue = {
name: 'blue',
url: '/blue',
parent: home,
templateUrl: 'content.blue.html'
},
green = {
name: 'green',
url: '/green',
parent: home,
templateUrl: 'content.green.html'
};
$stateProvider.state(home);
$stateProvider.state(red);
$stateProvider.state(green);
$stateProvider.state(blue);
}])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment