From d9defafe58f41c4b27dcf9ccd5da6c40c79b4721 Mon Sep 17 00:00:00 2001 From: chris Date: Tue, 17 Dec 2024 16:28:51 -0500 Subject: [PATCH] Update src/pages/[platform]/build-a-backend/data/set-up-data/index.mdx Co-authored-by: josef --- src/pages/[platform]/build-a-backend/data/set-up-data/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/[platform]/build-a-backend/data/set-up-data/index.mdx b/src/pages/[platform]/build-a-backend/data/set-up-data/index.mdx index 510d32986b0..f627b3fb708 100644 --- a/src/pages/[platform]/build-a-backend/data/set-up-data/index.mdx +++ b/src/pages/[platform]/build-a-backend/data/set-up-data/index.mdx @@ -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();