Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/framework/angular/guides/mutations.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export class TodosComponent {

```angular-ts
@Component({
standalone: true,
selector: 'todo-item',
imports: [ReactiveFormsModule],
template: `
Expand Down
2 changes: 0 additions & 2 deletions docs/framework/angular/guides/queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ result = injectQuery(() => ({ queryKey: ['todos'], queryFn: fetchTodoList }))
```angular-ts
@Component({
selector: 'todos',
standalone: true,
template: `
@if (todos.isPending()) {
<span>Loading...</span>
Expand Down Expand Up @@ -70,7 +69,6 @@ If booleans aren't your thing, you can always use the `status` state as well:
```angular-ts
@Component({
selector: 'todos',
standalone: true,
template: `
@switch (todos.status()) {
@case ('pending') {
Expand Down
1 change: 0 additions & 1 deletion docs/framework/angular/guides/query-cancellation.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ You might want to cancel a query manually. For example, if the request takes a l

```angular-ts
@Component({
standalone: true,
template: `<button (click)="onCancel()">Cancel</button>`,
})
export class TodosComponent {
Expand Down
1 change: 0 additions & 1 deletion docs/framework/angular/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ import { lastValueFrom } from 'rxjs'
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'simple-example',
standalone: true,
template: `
@if (query.isPending()) {
Loading...
Expand Down
1 change: 0 additions & 1 deletion docs/framework/angular/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ import {
} from '@tanstack/angular-query-experimental'

@Component({
standalone: true,
template: `
<div>
<button (click)="onAddTodo()">Add Todo</button>
Expand Down
1 change: 0 additions & 1 deletion examples/angular/auto-refetching/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { AutoRefetchingExampleComponent } from './components/auto-refetching.com
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'app-root',
standalone: true,
template: `<auto-refetching-example />`,
imports: [AutoRefetchingExampleComponent],
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { PostsService } from '../services/posts-service'
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'post',
standalone: true,
templateUrl: './post.component.html',
})
export class PostComponent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { PostsService } from '../services/posts-service'
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'posts',
standalone: true,
templateUrl: './posts.component.html',
})
export class PostsComponent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { PostsService } from '../services/posts-service'
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'post',
standalone: true,
templateUrl: './post.component.html',
})
export class PostComponent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { OptimisticUpdatesComponent } from './components/optimistic-updates.comp
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'app-root',
standalone: true,
template: `<optimistic-updates />`,
imports: [OptimisticUpdatesComponent],
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ describe('injectMutationState', () => {
<span>{{ mutation.status }}</span>
}
`,
standalone: true,
})
class FakeComponent {
name = input.required<string>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ describe('injectMutation', () => {
<button (click)="mutate()"></button>
<span>{{ mutation.data() }}</span>
`,
standalone: true,
})
class FakeComponent {
name = input.required<string>()
Expand Down Expand Up @@ -347,7 +346,6 @@ describe('injectMutation', () => {
<button (click)="mutate()"></button>
<span>{{ mutation.data() }}</span>
`,
standalone: true,
})
class FakeComponent {
name = input.required<string>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,6 @@ describe('injectQuery', () => {
@Component({
selector: 'app-fake',
template: `{{ query.data() }}`,
standalone: true,
})
class FakeComponent {
name = input.required<string>()
Expand Down
Loading