Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<md-slide-toggle labelPosition="before">label-before</md-slide-toggle>
<md-slide-toggle labelPosition="after">label-after</md-slide-toggle>
<md-slide-toggle disableRipple="true">disableRipple!!</md-slide-toggle>
<md-slide-toggle checked="true">checked!!</md-slide-toggle>
import { Component, OnInit } from '@angular/core';
selector: 'app-slidetoggle',
templateUrl: './slidetoggle.component.html',
styleUrls: ['./slidetoggle.component.css']
export class SlidetoggleComponent implements OnInit {
toggle = {
'name' : 'トグル',
'position' : 'before',
'checked' : false,
'disableRipple' : 'true',
'change' : () => {
constructor() { }
ngOnInit() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.