source: trip-planner-front/node_modules/@schematics/angular/module/files/__name@dasherize@if-flat__/__name@dasherize__.module.ts.template@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 833 bytes
Line 
1import { NgModule } from '@angular/core';<% if (commonModule) { %>
2import { CommonModule } from '@angular/common';<% } %><% if (lazyRouteWithoutRouteModule) { %>
3import { Routes, RouterModule } from '@angular/router';<% } %>
4<% if (routing || lazyRouteWithRouteModule) { %>
5import { <%= classify(name) %>RoutingModule } from './<%= dasherize(name) %>-routing.module';<% } %>
6<% if (lazyRouteWithoutRouteModule) { %>
7const routes: Routes = [
8 { path: '', component: <%= classify(name) %>Component }
9];<% } %>
10
11@NgModule({
12 declarations: [],
13 imports: [<% if (commonModule) { %>
14 CommonModule<% } %><% if (routing || lazyRouteWithRouteModule) { %>,
15 <%= classify(name) %>RoutingModule<% } %><% if (lazyRouteWithoutRouteModule) { %>,
16 RouterModule.forChild(routes)<% } %>
17 ]
18})
19export class <%= classify(name) %>Module { }
Note: See TracBrowser for help on using the repository browser.