Skip to content

Commit

Permalink
fix(@schematics/angular): order of module properties is inconsistent
Browse files Browse the repository at this point in the history
Closes #12509
  • Loading branch information
alan-agius4 authored and Keen Yee Liau committed Nov 1, 2018
1 parent ef6d76e commit a117698
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { CommonModule } from '@angular/common';<% } %><% if (routing) { %>
import { <%= classify(name) %>RoutingModule } from './<%= dasherize(name) %>-routing.module';<% } %>

@NgModule({
declarations: [],
imports: [<% if (commonModule) { %>
CommonModule<%= routing ? ',' : '' %><% } %><% if (routing) { %>
<%= classify(name) %>RoutingModule<% } %>
],
declarations: []
]
})
export class <%= classify(name) %>Module { }

0 comments on commit a117698

Please sign in to comment.