Skip to content

Commit 5ddbeae

Browse files
alan-agius4kyliau
authored andcommitted
fix(@schematics/angular): order of module properties is inconsistent
Closes #12509
1 parent 4eca4d6 commit 5ddbeae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/schematics/angular/module/files/__name@dasherize@if-flat__/__name@dasherize__.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import { CommonModule } from '@angular/common';<% } %><% if (routing) { %>
44
import { <%= classify(name) %>RoutingModule } from './<%= dasherize(name) %>-routing.module';<% } %>
55

66
@NgModule({
7+
declarations: [],
78
imports: [<% if (commonModule) { %>
89
CommonModule<%= routing ? ',' : '' %><% } %><% if (routing) { %>
910
<%= classify(name) %>RoutingModule<% } %>
10-
],
11-
declarations: []
11+
]
1212
})
1313
export class <%= classify(name) %>Module { }

0 commit comments

Comments
 (0)