diff options
author | wangyuerg <wangyuerg@chinamobile.com> | 2021-01-08 12:23:31 +0800 |
---|---|---|
committer | wangyuerg <wangyuerg@chinamobile.com> | 2021-01-08 12:24:04 +0800 |
commit | 5bead046179e8e00c2cc4681992a6ffe24e4b97e (patch) | |
tree | 42ff8dbab525359dcb978faa5708542cf2b5e664 /usecaseui-portal/src/app/app.component.ts | |
parent | 114398200f66e9139352d236beb5eb6417baa879 (diff) |
feat: embedding vue framwork in angular
Signed-off-by: wangyuerg <wangyuerg@chinamobile.com>
Change-Id: Ib065f7d3e1b7533161f880b5093ee9b829d2e46d
Issue-ID: USECASEUI-444
Diffstat (limited to 'usecaseui-portal/src/app/app.component.ts')
-rw-r--r-- | usecaseui-portal/src/app/app.component.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usecaseui-portal/src/app/app.component.ts b/usecaseui-portal/src/app/app.component.ts index 7abec444..c839519c 100644 --- a/usecaseui-portal/src/app/app.component.ts +++ b/usecaseui-portal/src/app/app.component.ts @@ -19,6 +19,7 @@ import { ServiceListService } from "./core/services/serviceList.service"; import { HomesService } from "./core/services/homes.service"; import { NavigationEnd, Router } from '@angular/router'; import 'rxjs/add/operator/map'; +import { menu } from './const/index' @Component({ selector: 'app-root', @@ -28,10 +29,15 @@ import 'rxjs/add/operator/map'; export class AppComponent { public url: string = 'home'; + menuItem: Object = menu.MENU_ITEM; + constructor(private translate: TranslateService, private myhttp: HomesService, private router: Router, ) { this.currentLanguageGet(); this.getUrl(); } + ngOnInit () { + console.log(this.menuItem) + } // Get the current routing path getUrl() { |