index.route.ts
1.04 KB
/** @ngInject */
export function routeConfig($stateProvider, $urlRouterProvider) {
$stateProvider
.state("main.profile.settings", {
url: "^/myprofile/:profile"
})
.state("main.profile.home", {
url: "",
views: {
"mainBlockContent": {
controller: "ProfileHomeController",
controllerAs: "vm"
}
}
})
.state("main.profile.page", {
url: "/{page:any}",
views: {
"mainBlockContent": {
templateUrl: "app/content-viewer/page.html",
controller: "ContentViewerController",
controllerAs: "vm"
},
"actions@main": {
templateUrl: "app/content-viewer/navbar-actions.html",
controller: "ContentViewerActionsController",
controllerAs: "vm"
}
}
});
$urlRouterProvider.otherwise("/");
}