Skip to content

Commit

Permalink
Add a sub module to group common components
Browse files Browse the repository at this point in the history
This module declares shared components and exports them. To use in another module you can simply add SharedModule in the imports section.
  • Loading branch information
brunolm committed Nov 24, 2017
1 parent b6a13b5 commit a78c9f5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/app/shared/shared.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { LayoutComponent } from './layout/layout.component';
import { TitleComponent } from './title/title.component';
import { RouterModule } from '@angular/router';

@NgModule({
imports: [
CommonModule,
RouterModule,
],
exports: [
LayoutComponent,
TitleComponent,
],
declarations: [
LayoutComponent,
TitleComponent,
],
})
export class SharedModule { }

0 comments on commit a78c9f5

Please sign in to comment.