Skip to content

Commit 08e9356

Browse files
make import in snippet consistent with other angular code snippets
1 parent e3ad85f commit 08e9356

File tree

1 file changed

+2
-2
lines changed
  • src/pages/[platform]/build-a-backend/data/query-data

1 file changed

+2
-2
lines changed

src/pages/[platform]/build-a-backend/data/query-data/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ const [posts, setPosts] = useState<Post[]>([]);
237237
<InlineFilter filters={["angular", "vue"]}>
238238

239239
```ts
240-
import { type Schema } from '@/amplify/data/resource';
240+
import { type Schema } from '../../../amplify/data/resource';
241241

242242
type Post = Schema['Post']['type'];
243243
```
@@ -306,9 +306,9 @@ onMounted(() => {
306306

307307
<InlineFilter filters={["angular"]}>
308308
```ts
309+
import type { Schema } from '../../../amplify/data/resource';
309310
import { Component, OnInit } from '@angular/core';
310311
import { generateClient, type SelectionSet } from 'aws-amplify/data';
311-
import type { Schema } from '../../../amplify/data/resource';
312312
import { CommonModule } from '@angular/common';
313313

314314
const client = generateClient<Schema>();

0 commit comments

Comments
 (0)