Skip to content

Commit ac38042

Browse files
jelbournAndrewKushnir
authored andcommitted
refactor(core): add REQUEST, RESPONSE_INIT and REQUEST_CONTEXT tokens
This commit introduces the `REQUEST`, `RESPONSE_INIT` and `REQUEST_CONTEXT` tokens, which will replace similar ones from https://github.com/angular/angular-cli/blob/28503186230b5e22b84499641d56c9c981fdab1d/packages/angular/ssr/tokens/src/tokens.ts, so those tokens would be imported in application code via `@angular/core` package.
1 parent 648c845 commit ac38042

File tree

322 files changed

+101
-411
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

322 files changed

+101
-411
lines changed

adev/src/content/api-examples/router/testing/test/router_testing_harness_examples.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {RouterTestingHarness} from '@angular/router/testing';
1515
describe('navigate for test examples', () => {
1616
// #docregion RoutedComponent
1717
it('navigates to routed component', async () => {
18-
@Component({standalone: true, template: 'hello {{name}}'})
18+
@Component({template: 'hello {{name}}'})
1919
class TestCmp {
2020
name = 'world';
2121
}
@@ -32,9 +32,9 @@ describe('navigate for test examples', () => {
3232
// #enddocregion
3333

3434
it('testing a guard', async () => {
35-
@Component({standalone: true, template: ''})
35+
@Component({template: ''})
3636
class AdminComponent {}
37-
@Component({standalone: true, template: ''})
37+
@Component({template: ''})
3838
class LoginComponent {}
3939

4040
// #docregion Guard

adev/src/content/best-practices/style-guide.md

Lines changed: 2 additions & 2 deletions

adev/src/content/examples/accessibility/src/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import {Component} from '@angular/core';
22
import {ExampleProgressbarComponent} from './progress-bar.component';
33

44
@Component({
5-
standalone: true,
65
selector: 'app-root',
76
templateUrl: './app.component.html',
87
styleUrls: ['./app.component.css'],

adev/src/content/examples/accessibility/src/app/progress-bar.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {Component, Input} from '@angular/core';
66
* Example progressbar component.
77
*/
88
@Component({
9-
standalone: true,
109
selector: 'app-example-progressbar',
1110
template: '<div class="bar" [style.width.%]="value"></div>',
1211
styleUrls: ['./progress-bar.component.css'],

adev/src/content/examples/angular-compiler-options/src/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import {Component} from '@angular/core';
22

33
@Component({
4-
standalone: true,
54
selector: 'app-root',
65
templateUrl: './app.component.html',
76
styleUrls: ['./app.component.css'],

adev/src/content/examples/animations/src/app/about.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import {Component} from '@angular/core';
22

33
@Component({
4-
standalone: true,
54
selector: 'app-about',
65
templateUrl: './about.component.html',
76
styleUrls: ['./about.component.css'],

adev/src/content/examples/animations/src/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {slideInAnimation} from './animations';
1616

1717
// #docregion decorator, toggle-app-animations, define
1818
@Component({
19-
standalone: true,
2019
selector: 'app-root',
2120
templateUrl: 'app.component.html',
2221
styleUrls: ['app.component.css'],

adev/src/content/examples/animations/src/app/hero-list-auto-page.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {HEROES} from './mock-heroes';
33
import {HeroListAutoComponent} from './hero-list-auto.component';
44

55
@Component({
6-
standalone: true,
76
selector: 'app-hero-list-auto-page',
87
template: `
98
<section>

adev/src/content/examples/animations/src/app/hero-list-auto.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {Hero} from './hero';
55
import {NgFor} from '@angular/common';
66

77
@Component({
8-
standalone: true,
98
selector: 'app-hero-list-auto',
109
templateUrl: 'hero-list-auto.component.html',
1110
styleUrls: ['./hero-list-page.component.css'],

adev/src/content/examples/animations/src/app/hero-list-enter-leave-page.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {HEROES} from './mock-heroes';
33
import {HeroListEnterLeaveComponent} from './hero-list-enter-leave.component';
44

55
@Component({
6-
standalone: true,
76
selector: 'app-hero-list-enter-leave-page',
87
template: `
98
<section>

0 commit comments

Comments
 (0)