Skip to content

Commit e3b40d4

Browse files
authored
chore(angular-query): remove standalone component markers as it's now the default (#9647)
1 parent d179168 commit e3b40d4

File tree

13 files changed

+0
-15
lines changed

13 files changed

+0
-15
lines changed

docs/framework/angular/guides/mutations.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ export class TodosComponent {
4747

4848
```angular-ts
4949
@Component({
50-
standalone: true,
5150
selector: 'todo-item',
5251
imports: [ReactiveFormsModule],
5352
template: `

docs/framework/angular/guides/queries.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ result = injectQuery(() => ({ queryKey: ['todos'], queryFn: fetchTodoList }))
3737
```angular-ts
3838
@Component({
3939
selector: 'todos',
40-
standalone: true,
4140
template: `
4241
@if (todos.isPending()) {
4342
<span>Loading...</span>
@@ -70,7 +69,6 @@ If booleans aren't your thing, you can always use the `status` state as well:
7069
```angular-ts
7170
@Component({
7271
selector: 'todos',
73-
standalone: true,
7472
template: `
7573
@switch (todos.status()) {
7674
@case ('pending') {

docs/framework/angular/guides/query-cancellation.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ You might want to cancel a query manually. For example, if the request takes a l
8383

8484
```angular-ts
8585
@Component({
86-
standalone: true,
8786
template: `<button (click)="onCancel()">Cancel</button>`,
8887
})
8988
export class TodosComponent {

docs/framework/angular/overview.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ import { lastValueFrom } from 'rxjs'
7070
@Component({
7171
changeDetection: ChangeDetectionStrategy.OnPush,
7272
selector: 'simple-example',
73-
standalone: true,
7473
template: `
7574
@if (query.isPending()) {
7675
Loading...

docs/framework/angular/quick-start.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ import {
5555
} from '@tanstack/angular-query-experimental'
5656
5757
@Component({
58-
standalone: true,
5958
template: `
6059
<div>
6160
<button (click)="onAddTodo()">Add Todo</button>

examples/angular/auto-refetching/src/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { AutoRefetchingExampleComponent } from './components/auto-refetching.com
44
@Component({
55
changeDetection: ChangeDetectionStrategy.OnPush,
66
selector: 'app-root',
7-
standalone: true,
87
template: `<auto-refetching-example />`,
98
imports: [AutoRefetchingExampleComponent],
109
})

examples/angular/basic-persister/src/app/components/post.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { PostsService } from '../services/posts-service'
1313
@Component({
1414
changeDetection: ChangeDetectionStrategy.OnPush,
1515
selector: 'post',
16-
standalone: true,
1716
templateUrl: './post.component.html',
1817
})
1918
export class PostComponent {

examples/angular/basic-persister/src/app/components/posts.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { PostsService } from '../services/posts-service'
1212
@Component({
1313
changeDetection: ChangeDetectionStrategy.OnPush,
1414
selector: 'posts',
15-
standalone: true,
1615
templateUrl: './posts.component.html',
1716
})
1817
export class PostsComponent {

examples/angular/basic/src/app/components/post.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { PostsService } from '../services/posts-service'
1212
@Component({
1313
changeDetection: ChangeDetectionStrategy.OnPush,
1414
selector: 'post',
15-
standalone: true,
1615
templateUrl: './post.component.html',
1716
})
1817
export class PostComponent {

examples/angular/optimistic-updates/src/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { OptimisticUpdatesComponent } from './components/optimistic-updates.comp
44
@Component({
55
changeDetection: ChangeDetectionStrategy.OnPush,
66
selector: 'app-root',
7-
standalone: true,
87
template: `<optimistic-updates />`,
98
imports: [OptimisticUpdatesComponent],
109
})

0 commit comments

Comments
 (0)