Angular Material - Angular Material Switch - Angular Material Tutorial
What is Switch in Angular Material?
- The md-switch, an Angular directives is used to show a switch.
learn angular material tutorials - seekbar Example
Attributes:
Sr.No | Parameter & Description |
---|---|
1 | * ng-model The assignable angular expression to data-bind to. |
2 | name The property name of the form under which the control is published. |
3 | ng-true-value The value to which the expression should be set when selected. |
4 | ng-false-value The value to which the expression should be set when not selected. |
5 | ng-change The Angular expression to be executed when input changes due to user interaction with the input element. |
6 | ng-disabled En/Disable based on the expression. |
7 | md-no-ink The use of attribute indicates the use of ripple ink effects. |
8 | aria-label This publishes the button label used by the screen-readers for accessibility. This defaults to the switch's text. |
Example:
- The following example showcases the use of md-swipe-* showcase uses of swipe components.