File

src/app/components/professor/library/library.component.ts

Metadata

selector app-library
styleUrls library.component.css
templateUrl library.component.html

Methods

changeState
changeState(newState: State)
Returns: void

Properties

state
state: State
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;
  }

}

results matching ""

    No results matching ""