# ngx-switch2

> ## Description

Latest version **0.0.2** (published 2020-08-05) · 0 weekly downloads

## Install

```sh
npm install ngx-switch2
pnpm add ngx-switch2
yarn add ngx-switch2
bun add ngx-switch2
```

## 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.2 |
| Published | 2020-08-05 |
| First published | 2020-08-05 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 23.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | edelacruz9713 |

## Links

- npm: https://www.npmjs.com/package/ngx-switch2
- npm.io page: https://npm.io/package/ngx-switch2

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.0.0

## Recent versions

- 0.0.2 (latest) — 2020-08-05
- 0.0.1 — 2020-08-05

## README

# Ngx UI Switch Component

## Description

This is an UI switch component for [Angular](https://angular.io).

## Installation

npm: `npm install ngx-switch2 --save`

## Usage

- Import into a module (`AppModule` example below)

```javascript
// app.module.ts
import { NgxSwitch2Module } from 'ngx-switch2';
import { AppComponent } from './app.component';

@NgModule({
  imports: [BrowserModule, NgxSwitch2Module],
  declarations: [AppComponent],
  bootstrap: [AppComponent]
})
export class AppModule {}
```
```html
<ngx-switch2></ngx-switch2>
```

# Params

### id

> inputId: *string*

> default: switch2

```html
<ngx-switch2 inputId="myId"></ngx-switch2>
<ngx-switch2 [inputId]="myVariable"></ngx-switch2>
```

### name

> inputName: *string*

> default: switch2

```html
<ngx-switch2 inputName="myName"></ngx-switch2>
<ngx-switch2 [inputName]="myVariable"></ngx-switch2>
```

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