mui lsider code example

Example 1: mat slide toggle button

import {MatSlideToggleModule} from '@angular/material/slide-toggle';

<mat-slide-toggle>Slide me!</mat-slide-toggle>

Example 2: slide a-z list in angular

content_copy
      
      import { Hero } from './hero';

export const HEROES: Hero[] = [
  { id: 11, name: 'Dr Nice' },
  { id: 12, name: 'Narco' },
  { id: 13, name: 'Bombasto' },
  { id: 14, name: 'Celeritas' },
  { id: 15, name: 'Magneta' },
  { id: 16, name: 'RubberMan' },
  { id: 17, name: 'Dynama' },
  { id: 18, name: 'Dr IQ' },
  { id: 19, name: 'Magma' },
  { id: 20, name: 'Tornado' }
];