Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
ng2-ui-switch-aot
Advanced tools
This is a simple iOS 7 style switch component for Angular2.
Inspired by switchery - in angular2.
npm install angular2-ui-switch --save
import { UiSwitchModule } from 'angular2-ui-switch'
import { AppComponent } from './app.component';
@NgModule({
imports: [BrowserModule, FormsModule, UiSwitchModule],
declarations: [AppComponent],
bootstrap: [AppComponent]
})
export class AppModule {
}
<ui-switch></ui-switch>
<ui-switch [(ngModel)]="enable"></ui-switch>
type: boolean
default: false
<ui-switch checked></ui-switch>
<ui-switch [checked]="false"></ui-switch>
type: boolean
default: false
<ui-switch disabled></ui-switch>
<ui-switch checked [disabled]="true"></ui-switch>
type: event
default: noop
<ui-switch (change)="onChange($event)"></ui-switch>
type: string
default: medium
<ui-switch size="small"></ui-switch>
<ui-switch size="large"></ui-switch>
type: boolean
default: false
<ui-switch reverse></ui-switch>
type: string
default: rgb(100, 189, 99)
<ui-switch color="red"></ui-switch>
type: string
default: #fff
<ui-switch switchColor="#fcfcfc"></ui-switch>
MIT
FAQs
switch button for angular2
We found that ng2-ui-switch-aot demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.