Skip to content

Instantly share code, notes, and snippets.

@cakesmith
Created July 29, 2014 23:43
Show Gist options
  • Select an option

  • Save cakesmith/b89a6de598fa71f2a983 to your computer and use it in GitHub Desktop.

Select an option

Save cakesmith/b89a6de598fa71f2a983 to your computer and use it in GitHub Desktop.
ui-router
(function (app) {
'use strict';
app.config(function($urlRouterProvider, $stateProvider) {
$stateProvider
.state('landing', {
url: '/landing',
templateUrl: '/states/landing/landing.html'
});
$urlRouterProvider.otherwise('/landing');
});
}(angular.module('cardgame', [
'ui.router',
])));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment