Created
July 29, 2014 23:43
-
-
Save cakesmith/b89a6de598fa71f2a983 to your computer and use it in GitHub Desktop.
ui-router
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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