ng-onoff
v19.0.0
Published
[](https://circleci.com/gh/Nexucis/ng-onoff) [](https://badge.fury.io/js/ng-onoff) [
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { NgOnoffModule } from 'ng-onoff';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
NgOnoffModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }And then use the component in a container that suits you :)
<div style="height: 100vh">
<ng-onoff></ng-onoff>
</div>
Contributions
Any contribution or suggestion would be really appreciated. Feel free to use the Issue section or to send a pull request.
Development
The repository provide a light demo to play with the onOff component and to try an integration with angular material.
License
The MIT License (MIT)
Copyright (c) 2019 Augustin Husson
