fengxiang
2018-07-12 5c0d8040266554b67e852ccb7056c3d0cae4b4ef
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { Component, OnInit } from '@angular/core';
 
@Component({
    selector: 'app-buttons',
    templateUrl: './buttons.component.html'
})
export class ButtonsComponent {
    disabled = false;
    loading = false;
    size = 'default';
 
    toggleDisabled() {
        this.disabled = !this.disabled;
    }
 
    toggleLoading() {
        this.loading = !this.loading;
    }
}