Skip to content

Commit ad113c7

Browse files
committed
refactor: remove standalone flag
standalone is the default
1 parent f8c0744 commit ad113c7

File tree

15 files changed

+0
-23
lines changed

15 files changed

+0
-23
lines changed

packages/angular/ssr/schematics/ng-add/index_spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ describe('@angular/ssr ng-add schematic', () => {
4545
routing: false,
4646
style: 'css',
4747
skipTests: false,
48-
standalone: true,
4948
},
5049
appTree,
5150
);

packages/angular/ssr/test/app-engine_spec.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,36 +20,31 @@ import { setAngularAppTestingManifest } from './testing-utils';
2020

2121
function createEntryPoint(locale: string) {
2222
@Component({
23-
standalone: true,
2423
selector: `app-ssr-${locale}`,
2524
template: `SSR works ${locale.toUpperCase()}`,
2625
})
2726
class SSRComponent {}
2827

2928
@Component({
30-
standalone: true,
3129
selector: `app-ssg-${locale}`,
3230
template: `SSG works ${locale.toUpperCase()}`,
3331
})
3432
class SSGComponent {}
3533

3634
return async () => {
3735
@Component({
38-
standalone: true,
3936
selector: `app-home-${locale}`,
4037
template: `Home works ${locale.toUpperCase()}`,
4138
})
4239
class HomeComponent {}
4340

4441
@Component({
45-
standalone: true,
4642
selector: `app-ssr-${locale}`,
4743
template: `SSR works ${locale.toUpperCase()}`,
4844
})
4945
class SSRComponent {}
5046

5147
@Component({
52-
standalone: true,
5348
selector: `app-ssg-${locale}`,
5449
template: `SSG works ${locale.toUpperCase()}`,
5550
})
@@ -177,7 +172,6 @@ describe('AngularAppEngine', () => {
177172
describe('Non-localized app', () => {
178173
beforeAll(() => {
179174
@Component({
180-
standalone: true,
181175
selector: 'app-home',
182176
template: `Home works`,
183177
})

packages/angular/ssr/test/app_spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ describe('AngularServerApp', () => {
2121

2222
beforeAll(() => {
2323
@Component({
24-
standalone: true,
2524
selector: 'app-home',
2625
template: `Home works`,
2726
})

packages/angular/ssr/test/routes/ng-routes_spec.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ describe('extractRoutesAndCreateRouteTree', () => {
2626
const url = new URL('http://localhost');
2727

2828
@Component({
29-
standalone: true,
3029
selector: 'app-dummy-comp',
3130
template: `dummy works`,
3231
})
@@ -630,7 +629,6 @@ describe('extractRoutesAndCreateRouteTree', () => {
630629

631630
it('should not bootstrap the root component', async () => {
632631
@Component({
633-
standalone: true,
634632
selector: 'app-root',
635633
template: '',
636634
})
@@ -659,7 +657,6 @@ describe('extractRoutesAndCreateRouteTree', () => {
659657

660658
it('should not bootstrap the root component when using `withEnabledBlockingInitialNavigation`', async () => {
661659
@Component({
662-
standalone: true,
663660
selector: 'app-root',
664661
template: '',
665662
})

packages/angular/ssr/test/routes/router_spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ describe('ServerRouter', () => {
2323

2424
beforeAll(() => {
2525
@Component({
26-
standalone: true,
2726
selector: 'app-dummy',
2827
template: `dummy works`,
2928
})

packages/angular/ssr/test/testing-utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import { ServerAsset, setAngularAppManifest } from '../src/manifest';
2020
import { ServerRoute, provideServerRendering, withRoutes } from '../src/routes/route-config';
2121

2222
@Component({
23-
standalone: true,
2423
selector: 'app-root',
2524
template: '<router-outlet />',
2625
imports: [RouterOutlet],

packages/schematics/angular/ssr/index_spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ describe('SSR Schematic', () => {
109109
routing: false,
110110
style: 'css',
111111
skipTests: false,
112-
standalone: true,
113112
},
114113
appTree,
115114
);

tests/legacy-cli/e2e/tests/build/library/setup.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export async function libraryConsumptionSetup(): Promise<void> {
1010
'projects/my-lib/src/lib/my-lib.ts': `import { Component } from '@angular/core';
1111
1212
@Component({
13-
standalone: true,
1413
selector: 'lib-my-lib',
1514
templateUrl: './my-lib.html',
1615
})
@@ -20,7 +19,6 @@ export async function libraryConsumptionSetup(): Promise<void> {
2019
import { MyLibComponent } from 'my-lib';
2120
2221
@Component({
23-
standalone: true,
2422
selector: 'app-root',
2523
template: '<lib-my-lib></lib-my-lib>',
2624
imports: [MyLibComponent],

tests/legacy-cli/e2e/tests/build/prerender/error-with-sourcemaps.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export default async function () {
2626
2727
@Component({
2828
selector: 'app-root',
29-
standalone: true,
3029
imports: [CommonModule, RouterOutlet],
3130
templateUrl: './app.html',
3231
styleUrls: ['./app.css']

tests/legacy-cli/e2e/tests/build/prerender/http-requests-assets.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ export default async function () {
5151
5252
@Component({
5353
selector: 'app-root',
54-
standalone: true,
5554
imports: [CommonModule, RouterOutlet],
5655
template: \`
5756
<p>{{ data | json }}</p>

0 commit comments

Comments
 (0)