# @sui-angular/core

> The first package, written in Angular, provides components for connecting to the SUI blockchain wallet. ⚠️ These packages are in the experimental stage and will undergo frequent changes during development. Please do not regard these APIs as stable.

Latest version **0.0.19** (published 2023-10-29) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @sui-angular/core
pnpm add @sui-angular/core
yarn add @sui-angular/core
bun add @sui-angular/core
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.19 |
| Published | 2023-10-29 |
| First published | 2023-10-22 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 8 |
| Unpacked size | 378.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | web3-wizzard |

## Links

- npm: https://www.npmjs.com/package/@sui-angular/core
- Repository: https://github.com/web3-wizzard/sui-angular
- Homepage: https://github.com/web3-wizzard/sui-angular#readme
- Issues: https://github.com/web3-wizzard/sui-angular/issues
- npm.io page: https://npm.io/package/@sui-angular/core

## Dependencies (8)

- [tslib](https://npm.io/package/tslib.md) ^2.3.0
- [@angular/cdk](https://npm.io/package/@angular/cdk.md) ^16.1.0
- [bignumber.js](https://npm.io/package/bignumber.js.md) ^9.1.1
- [@rx-angular/cdk](https://npm.io/package/@rx-angular/cdk.md) ^16.0.0
- [@angular/material](https://npm.io/package/@angular/material.md) ^16.1.0
- [@rx-angular/template](https://npm.io/package/@rx-angular/template.md) ^16.1.0
- [@ngrx/component-store](https://npm.io/package/@ngrx/component-store.md) ^16.3.0
- [@mysten/wallet-standard](https://npm.io/package/@mysten/wallet-standard.md) ^0.8.6

## Recent versions

- 0.0.19 (latest) — 2023-10-29
- 0.0.18 — 2023-10-29
- 0.0.17 — 2023-10-29
- 0.0.16 — 2023-10-29
- 0.0.15 — 2023-10-25
- 0.0.14 — 2023-10-22
- 0.0.13 — 2023-10-22
- 0.0.12 — 2023-10-22
- 0.0.11 — 2023-10-22
- 0.0.10 — 2023-10-22
- 0.0.9 — 2023-10-22
- 0.0.8 — 2023-10-22
- 0.0.7 — 2023-10-22
- 0.0.6 — 2023-10-22
- 0.0.5 — 2023-10-22
- … 4 more at https://npm.io/package/@sui-angular/core/versions

## README

# Sui Angular Wallet Kit

The first package, written in Angular, provides components for connecting to the SUI blockchain wallet. ⚠️ These packages are in the experimental stage and will undergo frequent changes during development. Please do not regard these APIs as stable.

## Getting started

To begin with an Angular application, you can install the following package:

```shell script
npm i @sui-angular/core
```

Add the following code snippets to angular.json.

```json script
"assets": [
              ...,
              {
                "glob": "**/*",
                "input": "node_modules/@sui-angular/core/assets",
                "output": "sui-angular"
              }
            ],
```

```json script
"styles": [
            ...,
            "node_modules/@sui-angular/core/styles/sui-angular.scss"
          ],
```

Next, you should import the CoreModule and specify either BrowserAnimationsModule or NoopAnimationsModule, just as you did.

```typescript script
import { SuiAngularCoreModule } from '@sui-angular/core';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';

@NgModule({
    ...,
    imports: [
        SuiAngularCoreModule,
        NoopAnimationsModule
    ],
    ...,
})
```

Add a connection button to your component
```html script
<div style="display: flex; justify-content: end; align-items: center;">
    <connect-button-container style="margin: 8px 16px;" (connected)="connected($event)"></connect-button-container>
</div>
```

```typescript script
import { AuthService, ConnectedWalletInterface } from '@sui-angular/core';

...
public connected(event: ConnectedWalletInterface): void {
    console.log(event, 'event');
}
...
```

---
_Source: https://npm.io/package/@sui-angular/core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
