Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including switch-btn with all npm packages installed. Try it out:

require("@angular/common/package.json"); // @angular/common is a peer dependency. require("@angular/core/package.json"); // @angular/core is a peer dependency. var switchBtn = require("switch-btn")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

switch-btn v0.0.1

1、此组件为开关样式的按钮 2、用法如下: 2.1 在app.module.ts中引入SwitchBtnPluginModule 2.2 在页面使用组件 <ott-switch-btn-plugin [status]="1" (onSwitchBtnFun)="yourFun($event.status)"></ott-switch-btn-plugin>

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free