The Switch enables you to control the title of its labels.

To set the behavior of the labels, use the onLabel and offLabel properties, which accept string parameters. Note that the Switch does not support long custom labels.

    selector: 'my-app',
    template: `

class AppComponent {
    public checked: boolean = false;

In this article