Skip to content

Commit

Permalink
make import in snippet consistent with other angular code snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbonifacio committed Dec 17, 2024
1 parent e3ad85f commit 08e9356
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ const [posts, setPosts] = useState<Post[]>([]);
<InlineFilter filters={["angular", "vue"]}>

```ts
import { type Schema } from '@/amplify/data/resource';
import { type Schema } from '../../../amplify/data/resource';

type Post = Schema['Post']['type'];
```
Expand Down Expand Up @@ -306,9 +306,9 @@ onMounted(() => {

<InlineFilter filters={["angular"]}>
```ts
import type { Schema } from '../../../amplify/data/resource';
import { Component, OnInit } from '@angular/core';
import { generateClient, type SelectionSet } from 'aws-amplify/data';
import type { Schema } from '../../../amplify/data/resource';
import { CommonModule } from '@angular/common';

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

0 comments on commit 08e9356

Please sign in to comment.