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
@NgModule({
bootstrap: [ AppComponent ],
declarations: [
- AppComponent,
- MenuComponent
+ AppComponent
],
imports: [
BrowserModule,
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 {
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',