add missing exports and declarations (#2901)

This commit is contained in:
Denys Vuika
2018-02-01 17:10:48 +00:00
committed by Eugenio Romano
parent 5c4aaa4f92
commit 8cd2190f37
2 changed files with 26 additions and 18 deletions

View File

@@ -19,23 +19,26 @@ import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { MaterialModule } from '../material.module'; import { MaterialModule } from '../material.module';
import { InfoDrawerLayoutComponent } from './info-drawer-layout.component'; import { InfoDrawerLayoutComponent, InfoDrawerTitleDirective, InfoDrawerButtonsDirective, InfoDrawerContentDirective } from './info-drawer-layout.component';
import { InfoDrawerComponent, InfoDrawerTabComponent } from './info-drawer.component'; import { InfoDrawerComponent, InfoDrawerTabComponent } from './info-drawer.component';
export function declarations() {
return [
InfoDrawerLayoutComponent,
InfoDrawerTabComponent,
InfoDrawerComponent,
InfoDrawerTitleDirective,
InfoDrawerButtonsDirective,
InfoDrawerContentDirective
];
}
@NgModule({ @NgModule({
imports: [ imports: [
CommonModule, CommonModule,
MaterialModule MaterialModule
], ],
declarations: [ declarations: declarations(),
InfoDrawerLayoutComponent, exports: declarations()
InfoDrawerTabComponent,
InfoDrawerComponent
],
exports: [
InfoDrawerLayoutComponent,
InfoDrawerTabComponent,
InfoDrawerComponent
]
}) })
export class InfoDrawerModule {} export class InfoDrawerModule {}

View File

@@ -20,7 +20,16 @@ import { FlexLayoutModule } from '@angular/flex-layout';
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { MaterialModule } from '../material.module'; import { MaterialModule } from '../material.module';
import { SidebarActionMenuComponent } from './sidebar-action-menu.component'; import { SidebarActionMenuComponent, SidebarMenuDirective, SidebarMenuExpandIconDirective, SidebarMenuTitleIconDirective } from './sidebar-action-menu.component';
export function declarations() {
return [
SidebarActionMenuComponent,
SidebarMenuDirective,
SidebarMenuExpandIconDirective,
SidebarMenuTitleIconDirective
];
}
@NgModule({ @NgModule({
imports: [ imports: [
@@ -28,11 +37,7 @@ import { SidebarActionMenuComponent } from './sidebar-action-menu.component';
MaterialModule, MaterialModule,
FlexLayoutModule FlexLayoutModule
], ],
declarations: [ declarations: declarations(),
SidebarActionMenuComponent exports: declarations()
],
exports: [
SidebarActionMenuComponent
]
}) })
export class SideBarActionModule {} export class SideBarActionModule {}