Skip to content

Commit f6c9e66

Browse files
fix: add standalone: false to playground components for Angular 19 compatibility
1 parent 22cfaca commit f6c9e66

File tree

8 files changed

+9
-1
lines changed

8 files changed

+9
-1
lines changed

projects/playground/.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"prefix": "app",
2929
"style": "camelCase"
3030
}
31-
]
31+
],
32+
"@angular-eslint/prefer-standalone": "off"
3233
}
3334
},
3435
{

projects/playground/src/app/app.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { LogoutOptions } from 'projects/auth0-angular/src/lib/interfaces';
1111
selector: 'app-root',
1212
templateUrl: './app.component.html',
1313
styleUrls: ['./app.component.css'],
14+
standalone: false,
1415
})
1516
export class AppComponent implements OnInit {
1617
isAuthenticated$ = this.auth.isAuthenticated$;

projects/playground/src/app/components/child-route.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ import { Component } from '@angular/core';
88
<router-outlet></router-outlet>
99
`,
1010
styles: [],
11+
standalone: false,
1112
})
1213
export class ChildRouteComponent {}

projects/playground/src/app/components/error.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ import { Component, OnInit } from '@angular/core';
44
selector: 'app-error',
55
template: '<p data-cy="error">Error!</p>',
66
styles: [],
7+
standalone: false,
78
})
89
export class ErrorComponent {}

projects/playground/src/app/components/lazy-module.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ import { Component } from '@angular/core';
44
selector: 'app-lazy-module',
55
template: '<p data-cy="lazy-module">lazy-module works!</p>',
66
styles: [],
7+
standalone: false,
78
})
89
export class LazyModuleComponent {}

projects/playground/src/app/components/nested-child-route.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ import { Component } from '@angular/core';
44
selector: 'app-nested-child-route',
55
template: ` <p data-cy="nested-child-route">Nested child-route works!</p> `,
66
styles: [],
7+
standalone: false,
78
})
89
export class NestedChildRouteComponent {}

projects/playground/src/app/components/protected.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ import { Component } from '@angular/core';
44
selector: 'app-protected',
55
template: '<p data-cy="protected">This route is protected!</p>',
66
styles: [],
7+
standalone: false,
78
})
89
export class ProtectedComponent {}

projects/playground/src/app/components/unprotected.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ import { Component } from '@angular/core';
44
selector: 'app-unprotected',
55
template: '<p data-cy="unprotected">This route is unprotected!</p>',
66
styles: [],
7+
standalone: false,
78
})
89
export class UnprotectedComponent {}

0 commit comments

Comments
 (0)