Skip to content

Commit 66ba986

Browse files
committed
feat: small fix angular 20 for app
1 parent 008d237 commit 66ba986

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/devextreme-schematics/src/add-layout/files/src/app/__name__.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { UnauthenticatedContentComponent } from './unauthenticated-content';
2323
],
2424
providers: []
2525
})
26-
export class <%= strings.classify(name) %>Component {
26+
export class <%= strings.classify(name) %> {
2727
@HostBinding('class') get getClass() {
2828
const sizeClassName = Object.keys(this.screen.sizes).filter(cl => this.screen.sizes[cl]).join(' ');
2929
return `${sizeClassName} app` ;

packages/devextreme-schematics/src/add-view/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export function addViewToRouting(options: any) {
107107

108108
const name = options.name.replace(/^pages\//, '');
109109
const componentName = getRouteComponentName(name);
110-
const path = isAngularVersionHigherThan(host, 20) ? `./pages/${name}/${name}.component` : `./pages/${name}/${name}.component.ts`;
110+
const path = `./pages/${name}/${name}.component`;
111111

112112
const importChanges = insertImport(source, routingModulePath, componentName, path);
113113
applyChanges(host, [importChanges], routingModulePath);

0 commit comments

Comments
 (0)