26 lines
550 B
TypeScript
26 lines
550 B
TypeScript
|
import { Input, Component, Inject } from 'ng-metadata/core';
|
||
|
const templateUrl = require('./config-setup-app.component.html');
|
||
|
|
||
|
/**
|
||
|
* Initial Screen and Choice in the Config App
|
||
|
*/
|
||
|
@Component({
|
||
|
selector: 'config-setup-app',
|
||
|
templateUrl: templateUrl,
|
||
|
})
|
||
|
export class ConfigSetupAppComponent {
|
||
|
private state: 'choice' | 'setup' | 'load';
|
||
|
|
||
|
constructor() {
|
||
|
this.state = 'choice';
|
||
|
}
|
||
|
|
||
|
private chooseSetup(): void {
|
||
|
this.state = 'setup';
|
||
|
}
|
||
|
|
||
|
private chooseLoad(): void {
|
||
|
this.state = 'load';
|
||
|
}
|
||
|
}
|