Skip to content

Commit b748c62

Browse files
refactor: convert components to standalone (Angular 19 default)
1 parent 1f4ce61 commit b748c62

File tree

8 files changed

+1
-10
lines changed

8 files changed

+1
-10
lines changed

projects/auth0-angular/src/lib/abstract-navigator.spec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ describe('RouteNavigator', () => {
1010
let replaceStateSpy: any;
1111

1212
// Stub component for the sake of getting the router to accept routes
13-
@Component({
14-
standalone: false,
15-
})
13+
@Component({})
1614
class StubComponent {}
1715

1816
describe('with no router', () => {

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ 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,
1514
})
1615
export class AppComponent implements OnInit {
1716
isAuthenticated$ = this.auth.isAuthenticated$;

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

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

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

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

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ 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,
87
})
98
export class LazyModuleComponent {}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ 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,
87
})
98
export class NestedChildRouteComponent {}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ 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,
87
})
98
export class ProtectedComponent {}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ 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,
87
})
98
export class UnprotectedComponent {}

0 commit comments

Comments
 (0)