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 { 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';
export function declarations() {
return [
InfoDrawerLayoutComponent,
InfoDrawerTabComponent,
InfoDrawerComponent,
InfoDrawerTitleDirective,
InfoDrawerButtonsDirective,
InfoDrawerContentDirective
];
}
@NgModule({
imports: [
CommonModule,
MaterialModule
],
declarations: [
InfoDrawerLayoutComponent,
InfoDrawerTabComponent,
InfoDrawerComponent
],
exports: [
InfoDrawerLayoutComponent,
InfoDrawerTabComponent,
InfoDrawerComponent
]
declarations: declarations(),
exports: declarations()
})
export class InfoDrawerModule {}

View File

@@ -20,7 +20,16 @@ import { FlexLayoutModule } from '@angular/flex-layout';
import { NgModule } from '@angular/core';
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({
imports: [
@@ -28,11 +37,7 @@ import { SidebarActionMenuComponent } from './sidebar-action-menu.component';
MaterialModule,
FlexLayoutModule
],
declarations: [
SidebarActionMenuComponent
],
exports: [
SidebarActionMenuComponent
]
declarations: declarations(),
exports: declarations()
})
export class SideBarActionModule {}