-
Notifications
You must be signed in to change notification settings - Fork 12k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(feature): add ability to generate feature modules (#1867)
- Loading branch information
Showing
3 changed files
with
39 additions
and
16 deletions.
There are no files selected for viewing
13 changes: 10 additions & 3 deletions
13
addon/ng2/blueprints/module/files/__path__/__name__.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { routing } from './<%= dasherizedModuleName %>.routes'; | ||
import { <%= classifiedModuleName %>Component } from './<%= dasherizedModuleName %>.component'; | ||
|
||
@NgModule({ | ||
imports: [ CommonModule ], | ||
declarations: [] | ||
imports: [ | ||
CommonModule, | ||
routing | ||
], | ||
declarations: [ | ||
<%= classifiedModuleName %>Component | ||
] | ||
}) | ||
export default class <%= classifiedModuleName %>Module { } | ||
export class <%= classifiedModuleName %>Module { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters