Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
833 bytes
|
Line | |
---|
1 | import { NgModule } from '@angular/core';<% if (commonModule) { %>
|
---|
2 | import { CommonModule } from '@angular/common';<% } %><% if (lazyRouteWithoutRouteModule) { %>
|
---|
3 | import { Routes, RouterModule } from '@angular/router';<% } %>
|
---|
4 | <% if (routing || lazyRouteWithRouteModule) { %>
|
---|
5 | import { <%= classify(name) %>RoutingModule } from './<%= dasherize(name) %>-routing.module';<% } %>
|
---|
6 | <% if (lazyRouteWithoutRouteModule) { %>
|
---|
7 | const 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 | })
|
---|
19 | export class <%= classify(name) %>Module { }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.