Define and configure UI-Router in order to provide navigation for the app.
Dependencies:
| Name | Type | Description |
|---|---|---|
| $stateProvider | UI-Router service which registers states for each route. |
|
| $urlRouterProvider | UI-Router service which watches $location and applies defined rules when the route changes. |
|
| $urlMatcherFactoryProvider | UI-Router service when dictates how URLs are matched to routes |
|
| $uiViewScrollProvider | UI-Router service which configures scroll behavior on route change. |
|
| $locationProvider | Service effects how the app stores deep linking paths. |
Members
Methods
-
setPageTitleAndTheme ($rootScope, title, theme)
-
Helper function that is run every time a main route is entered. It updates the pageTitle and theme from the data retrieved from the server.
Parameters:
Name Type Description $rootScope AngularJS root scope
title The new title of the page, default 'Missouri Historical Society'
theme The new theme for the page, default 'MHS'