Skip to content

Commit

Permalink
Update src/pages/[platform]/build-a-backend/data/set-up-data/index.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: josef <[email protected]>
  • Loading branch information
chrisbonifacio and josefaidt authored Dec 17, 2024
1 parent 75ed92f commit d9defaf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1112,10 +1112,10 @@ async function createTodo() {
You can also use `observeQuery` to subscribe to a live feed of your backend data. Let's refactor the code to use a real-time observeQuery instead.

```ts title="todo-list.component.ts"
import type { Schema } from '../../../amplify/data/resource';
import { Component, OnInit } from '@angular/core';
import { CommonModule } from '@angular/common';
import { generateClient } from 'aws-amplify/data';
import type { Schema } from '../../../amplify/data/resource';
import { Subscription } from 'rxjs';

const client = generateClient<Schema>();
Expand Down

0 comments on commit d9defaf

Please sign in to comment.