Client: move menu component in core module
This commit is contained in:
parent
f81bb2853c
commit
50b0c262fd
|
@ -16,8 +16,6 @@ import { LoginModule } from './login';
|
|||
import { SharedModule } from './shared';
|
||||
import { VideosModule } from './videos';
|
||||
|
||||
import { MenuComponent } from './menu.component';
|
||||
|
||||
const metaConfig: MetaConfig = {
|
||||
//Append a title suffix such as a site name to all titles
|
||||
//Defaults to false
|
||||
|
@ -35,8 +33,7 @@ const APP_PROVIDERS = [
|
|||
@NgModule({
|
||||
bootstrap: [ AppComponent ],
|
||||
declarations: [
|
||||
AppComponent,
|
||||
MenuComponent
|
||||
AppComponent
|
||||
],
|
||||
imports: [
|
||||
BrowserModule,
|
||||
|
|
|
@ -1,17 +1,20 @@
|
|||
import { NgModule, Optional, SkipSelf } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { HttpModule } from '@angular/http';
|
||||
import { RouterModule } from '@angular/router';
|
||||
|
||||
import { AuthService } from './auth';
|
||||
import { MenuComponent } from './menu';
|
||||
import { throwIfAlreadyLoaded } from './module-import-guard';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
HttpModule
|
||||
HttpModule,
|
||||
RouterModule
|
||||
],
|
||||
declarations: [ ],
|
||||
exports: [ ],
|
||||
declarations: [ MenuComponent ],
|
||||
exports: [ MenuComponent ],
|
||||
providers: [ AuthService ]
|
||||
})
|
||||
export class CoreModule {
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
export * from './menu.component';
|
|
@ -1,8 +1,8 @@
|
|||
import { Component, OnInit } from '@angular/core';
|
||||
import { Router } from '@angular/router';
|
||||
|
||||
import { AuthService } from './core';
|
||||
import { AuthStatus } from './shared';
|
||||
import { AuthService } from '../auth';
|
||||
import { AuthStatus } from '../../shared';
|
||||
|
||||
@Component({
|
||||
selector: 'my-menu',
|
Loading…
Reference in New Issue