diff --git a/src/app/index.route.ts b/src/app/index.route.ts deleted file mode 100644 index 648118e..0000000 --- a/src/app/index.route.ts +++ /dev/null @@ -1,11 +0,0 @@ - - -/** @ngInject */ -export function routeConfig($stateProvider: ng.ui.IStateProvider, $urlRouterProvider: ng.ui.IUrlRouterProvider) { - $stateProvider - .state("main.profile.settings", { - url: "^/myprofile/:profile" - }); - - $urlRouterProvider.otherwise("/"); -} diff --git a/src/app/index.ts b/src/app/index.ts index bb51a17..280d074 100644 --- a/src/app/index.ts +++ b/src/app/index.ts @@ -1,7 +1,6 @@ import {NoosferoApp} from "./index.module"; import {noosferoModuleConfig} from "./index.config"; import {noosferoAngularRunBlock} from "./index.run"; -import {routeConfig} from "./index.route"; import {Main} from "./main/main.component"; import {bootstrap, bundle} from "ng-forward"; @@ -28,5 +27,3 @@ NoosferoApp.addConstants("AUTH_EVENTS", AUTH_EVENTS); NoosferoApp.addConfig(noosferoModuleConfig); NoosferoApp.run(noosferoAngularRunBlock); - -NoosferoApp.addConfig(routeConfig); diff --git a/src/app/profile/myprofile.component.ts b/src/app/profile/myprofile.component.ts new file mode 100644 index 0000000..32686b9 --- /dev/null +++ b/src/app/profile/myprofile.component.ts @@ -0,0 +1,9 @@ +import {Component} from "ng-forward"; + +@Component({ + selector: 'profile', + templateUrl: "app/profile/profile.html", +}) +export class MyProfile { + +} diff --git a/src/app/profile/profile.component.ts b/src/app/profile/profile.component.ts index 69fce42..9f1d00f 100644 --- a/src/app/profile/profile.component.ts +++ b/src/app/profile/profile.component.ts @@ -7,6 +7,7 @@ import {ContentViewerActions} from "../content-viewer/content-viewer-actions.com import {NoosferoActivities} from "../components/noosfero-activities/activities.component"; import {ProfileService} from "../../lib/ng-noosfero-api/http/profile.service"; import {Notification} from "../components/notification/notification.component"; +import {MyProfile} from "./myprofile.component"; import * as noosferoModels from "./../models/interfaces"; @@ -39,6 +40,11 @@ import * as noosferoModels from "./../models/interfaces"; } }, { + name: 'main.profile.settings', + url: "^/myprofile/:profile", + component: MyProfile + }, + { name: 'main.profile.cms', url: "^/myprofile/:profile/cms", component: Cms, -- libgit2 0.21.2