Skip to content

add angular specific code snippet #7353

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions src/pages/[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);
Comment on lines +672 to +673
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import amplifyconfig from './amplifyconfiguration.json';
Amplify.configure(amplifyconfig);
import outputs from './amplify_outputs.json';
Amplify.configure(outputs);

the PR with this change in other examples hasn't been merged just yet #7346

```

</InlineFilter>

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

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