You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(@schematics/angular): generate modules with a dash type separator
To align with the updated style guide, Angular v20 will generate modules
with file extension `module` type prefixed with a `-` separator instead of
a `.` by default. Projects will automatically use this naming convention.
Projects can however opt-out by setting the `typeSeparator` option to `.`
for the module schematic. This can be done as a default in the `angular.json`
or directly on the commandline via `--type-separator=.` when executing `ng generate`.
As an example, `example.module.ts` will now be named `example-module.ts`.
The TypeScript declaration will continue to contain `Module` such as with `ExampleModule`.
Copy file name to clipboardExpand all lines: packages/schematics/angular/module/files/__name@dasherize@if-flat__/__name@dasherize____typeSeparator__module.ts.template
+1-1
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ import { NgModule } from '@angular/core';<% if (commonModule) { %>
2
2
import { CommonModule } from '@angular/common';<% } %><% if (lazyRouteWithoutRouteModule) { %>
3
3
import { Routes, RouterModule } from '@angular/router';<% } %>
4
4
<% if ((!lazyRoute && routing) || lazyRouteWithRouteModule) { %>
0 commit comments