Skip to content

Commit 63edd1a

Browse files
committed
Update angular quick start
1 parent 486f9c2 commit 63edd1a

20 files changed

Lines changed: 65 additions & 137 deletions

src/common/hostedFileLinks.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
"ANGULAR_POLYFILL_TS": "Web3Auth/web3auth-pnp-examples/refs/heads/v10-testing/quick-starts/angular-quick-start/src/polyfills.ts",
2121
"ANGULAR_PACKAGE_JSON": "Web3Auth/web3auth-pnp-examples/refs/heads/v10-testing/quick-starts/angular-quick-start/package.json",
2222
"ANGULAR_TSCONFIG_JSON": "Web3Auth/web3auth-pnp-examples/refs/heads/v10-testing/quick-starts/angular-quick-start/tsconfig.json",
23+
"ANGULAR_ETHERSRPC_TS": "Web3Auth/web3auth-pnp-examples/refs/heads/v10-testing/quick-starts/angular-quick-start/src/app/ethersRPC.ts",
24+
"ANGULAR_VIEMRPC_TS": "Web3Auth/web3auth-pnp-examples/refs/heads/v10-testing/quick-starts/angular-quick-start/src/app/viemRPC.ts",
2325
"VUE_CONFIG_JS": "Web3Auth/web3auth-pnp-examples/refs/heads/v10-testing/quick-starts/vue-quick-start/vue.config.js",
2426
"VUE_PACKAGE_JSON": "Web3Auth/web3auth-pnp-examples/refs/heads/v10-testing/quick-starts/vue-quick-start/package.json",
2527
"VUE_HOME_VUE": "Web3Auth/web3auth-pnp-examples/refs/heads/v10-testing/quick-starts/vue-quick-start/src/Home.vue",

src/pages/quick-start/builder/web/angular/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ const framework = {
1111
filenames.push(hostedFileLinks.ANGULAR_APP_COMPONENT_HTML);
1212
filenames.push(hostedFileLinks.ANGULAR_POLYFILL_TS);
1313
filenames.push(hostedFileLinks.ANGULAR_TSCONFIG_JSON);
14+
filenames.push(hostedFileLinks.ANGULAR_ETHERSRPC_TS);
15+
filenames.push(hostedFileLinks.ANGULAR_VIEMRPC_TS);
1416

1517
return { filenames, files, steps };
1618
},

src/pages/quick-start/builder/web/angular/stepContent/angularBundlerIssues.mdx

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,9 @@
22
title: Fixing Bundler Issues
33
---
44

5-
While using Web3Auth in Angular, you may run into issues building. This issue occurs because some
6-
core packages like `eccrypto` have certain dependencies which are not present within the browser
7-
build environment.
5+
While using any web3 library in Angular, you may run into issues building. This issue occurs because
6+
some core packages like `eccrypto` have certain dependencies which are not present within the
7+
browser build environment.
88

9-
:::tip Troubleshooting
10-
11-
To solve this, please have a look at our troubleshooting pages:
12-
13-
- [Vite Issues](/troubleshooting/vite-issues)
14-
- [Webpack 5 Issues](/troubleshooting/webpack-issues)
15-
16-
:::
9+
> To solve this, please have a look at our troubleshooting pages about
10+
> [Webpack 5 Issues](/troubleshooting/webpack-issues)
Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,18 @@
11
---
2-
title: Web3Auth PnP Modal Angular Quick Start
2+
title: Web3Auth Angular Quick Start
33
---
44

5-
This guide is designed to help you quickly integrate a basic instance of Web3Auth Plug and Play
6-
Modal in your Angular app.
5+
Integrate secure and seamless Web3 authentication into your Angular app using Web3Auth.
76

8-
If you face any problem anytime, you can always find help in the
9-
[Web3Auth Community](https://web3auth.io/community/c/help-pnp/pnp-web/7).
10-
11-
:::tip building locally
7+
Clone the Angular Quick Start Application
128

13-
- Clone the PnP Modal Angular Quick Start Application
9+
```shell
10+
npx degit Web3Auth/web3auth-pnp-examples/quick-starts/angular-quick-start w3a-quick-start
11+
```
1412

15-
```shell npm2yarn
16-
npx degit Web3Auth/web3auth-pnp-examples/web-modal-sdk/quick-starts/angular-modal-quick-start w3a-quick-start
17-
```
13+
:::info
1814

19-
- Install & Run
20-
21-
```shell npm2yarn
22-
cd w3a-quick-start
23-
npm install
24-
npm run start
25-
```
15+
If you face any problem anytime, you can always find help in the
16+
[**Web3Auth Community**](https://web3auth.io/community/c/help-pnp/pnp-web/7).
2617

2718
:::
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: Making Blockchain Calls
3+
---
4+
5+
This example demonstrates the connection for an EVM Chain with Web3Auth. You can choose the library
6+
of your choice and configure it according the steps given in the respective RPC Files.
7+
8+
:::tip Other Blockchains
9+
10+
Web3Auth supports all blockchains. Have a look at our [Connect Blockchain](/connect-blockchain/)
11+
section of the documentation and choose your blockchain to get started.
12+
13+
:::

src/pages/quick-start/builder/web/nextjs/stepContent/config.mdx renamed to src/pages/quick-start/builder/web/angular/stepContent/config.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Dashboard Project Settings.
88
:::info
99

1010
This is where you can also configure any major settings of your integration as well. Visit our
11-
[**configuration section**](/sdk/web/react/config) of the sdk reference to learn more about the
11+
[**configuration section**](/sdk/web/js/config) of the sdk reference to learn more about the
1212
different options available.
1313

1414
:::

src/pages/quick-start/builder/web/angular/stepContent/initialize.mdx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,5 @@
22
title: Initialize Web3Auth
33
---
44

5-
Web3Auth needs to be initialized as soon as your app loads up to enable the user to log in.
6-
Preferably done within a constructor, initialization is the step where you can pass on all the
7-
configurations for Web3Auth you want.
8-
9-
For initializing Web3Auth PnP Modal SDK, you need to provide your Client ID, the Web3Auth Network of
10-
your project and the configuration of the chain you're looking to connect to.
5+
Web3Auth's Instance needs to be initialized as soon as your app loads up to enable the user to log
6+
in. Preferably done within a constructor.

src/pages/quick-start/commonSteps/installationWeb.mdx renamed to src/pages/quick-start/builder/web/angular/stepContent/installation.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ title: Install Web3Auth
44

55
Install the Web3Auth package in your project.
66

7+
> Additionally, for blockchain calls, this example can run with `viem` or `ethers`, you can choose
8+
> your preferred library.
9+
710
```bash npm2yarn
8-
npm install --save @web3auth/modal
11+
npm install --save @web3auth/modal viem
912
```
1013

1114
[![Npm package monthly downloads](https://badgen.net/npm/dm/@web3auth/modal)](https://www.npmjs.com/package/@web3auth/modal)

src/pages/quick-start/builder/web/angular/stepContent/instantiate.mdx

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/pages/quick-start/builder/web/angular/stepContent/login.mdx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,3 @@ title: Logging in your User
44

55
Use the `connect` function in the Web3Auth Instance to display the modal. The modal will prompt the
66
user to login with their wallet and handle the authentication for you.
7-
8-
After a successful user login, the `connect` function returns a provider that can be used to
9-
interact with the blockchain and sign transactions.
10-
11-
:::info SDK Reference
12-
13-
- [`connect()` function](/sdk/pnp/web/modal/usage#logging-in-the-user).
14-
15-
:::

0 commit comments

Comments
 (0)