You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

ng-onoff

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-onoff

[![CircleCI](https://circleci.com/gh/Nexucis/ng-onoff.svg?style=shield)](https://circleci.com/gh/Nexucis/ng-onoff) [![npm version](https://badge.fury.io/js/ng-onoff.svg)](https://badge.fury.io/js/ng-onoff) [![License](https://img.shields.io/:license-mit-b

latest
Source
npmnpm
Version
19.0.0
Version published
Maintainers
0
Created
Source

Angular Component OnOff

CircleCI npm version License

This is an angular module that can be helped to integrate the original game OnOff

Versioning

This project uses the following version rules:

X.Y.Z

Where :

  • X is the major version of Angular supported by this project
  • Y is the major version of this library. Be careful with this rule, you can have some breaking changes between two Y number.
  • Z is the minor version of this library. It will be increased when there are some bug fixes.

Supported Version

Angular VersionSupport Branch
>= 8.0master

Installation

npm install ng-onoff --save

Usage

First import NgOnOffModule in the module where you wish to display the game (it can be another module than the AppModule)

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

FAQs

Package last updated on 19 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts