File
Metadata
selector |
app-library |
styleUrls |
library.component.css |
templateUrl |
library.component.html |
Methods
changeState
|
changeState(newState: State)
|
Returns: void
|
stateType
|
stateType: typeof State
|
Default value: State
|
import { Component } from '@angular/core';
enum State {
surveys,
courses,
questions
}
@Component({
selector: 'app-library',
templateUrl: './library.component.html',
styleUrls: ['./library.component.css']
})
export class LibraryComponent {
state: State = State.courses;
stateType = State;
changeState(newState: State) {
this.state = newState;
}
}