Last active
August 29, 2015 14:04
-
-
Save BenMagyar/2ee6691757e015185724 to your computer and use it in GitHub Desktop.
This file contains 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
var app = angular.module('app', [ | |
'ui.router', | |
'app.MyModule' | |
]); | |
// State provider from original app.js | |
app.config(function($stateProvider, $urlRouterProvider){ | |
$urlRouterProvider.otherwise('/'); | |
$stateProvider | |
// INDEX | |
.state('index', { | |
url: '/', | |
templateUrl: '/templates/index.tmpl.html' | |
}) | |
}); | |
// States for MyModule -- these are concatenated together by grunt | |
angular.module('app.MyModule', ['ui.router']).config( | |
['$stateProvider'], function($stateProvider){ | |
$stateProvider | |
.state('MyModuleStateOne',{ | |
url: '/MyModuleStateOneURL', | |
templateUrl: '/MyModule/MyModule.tmpl.html' | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment