Set default standalone app homepage

This commit is contained in:
Colin McLeod
2015-06-06 13:58:33 -07:00
parent dbd1060cb3
commit 0d1fa7904e

View File

@@ -49,6 +49,8 @@ angular.module('app', ['ui.router', 'ct.ui.router.extras.sticky', 'ui.sortable',
// If a previous state has been stored, load that state
if (state && state.name && state.params) {
$state.go(state.name, state.params, {location:'replace'});
} else {
$state.go('shipyard', null, {location:'replace'}); // Default to home page
}
}