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