Skip to content

Commit

Permalink
add angular specific code snippet (#7353)
Browse files Browse the repository at this point in the history
* add angular specific code snippet

* update dist directory path
  • Loading branch information
hdworld11 authored and Jacob Logan committed Apr 30, 2024
1 parent 6e1dccb commit 7e16dff
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/pages/gen1/[platform]/start/getting-started/setup/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ Project information
| App type: javascript
| Javascript framework: angular
| Source Directory Path: src
| Distribution Directory Path: dist
| Distribution Directory Path: dist/amplify-app/browser
| Build Command: npm run-script build
| Start Command: ng serve

Expand Down Expand Up @@ -665,7 +665,17 @@ Next, configure the Amplify libraries client-side so it can interact with backen
Open **src/main.js** and add the following code below the last import:
</InlineFilter>

<InlineFilter filters={["angular", "react", "vue"]}>
<InlineFilter filters={["angular"]}>

```javascript title="src/main.ts"
import { Amplify } from 'aws-amplify';
import amplifyconfig from './amplifyconfiguration.json';
Amplify.configure(amplifyconfig);
```

</InlineFilter>

<InlineFilter filters={["react", "vue"]}>

```javascript title="src/main.jsx"
import { Amplify } from 'aws-amplify';
Expand Down

0 comments on commit 7e16dff

Please sign in to comment.