28 lines
695 B
TypeScript
28 lines
695 B
TypeScript
import {Component, EventEmitter, Input, Output} from '@angular/core';
|
|
import {NgForOf} from '@angular/common';
|
|
import {Circuit} from '../circuit/Circuit';
|
|
import {DEMO_001} from '../circuit/DEMO_001';
|
|
import {DEMO_002} from '../circuit/DEMO_002';
|
|
import {DEMO_003} from '../circuit/DEMO_003';
|
|
import {DEMO_004} from '../circuit/DEMO_004';
|
|
|
|
@Component({
|
|
selector: 'app-menubar',
|
|
imports: [
|
|
NgForOf
|
|
],
|
|
templateUrl: './menubar.component.html',
|
|
styleUrl: './menubar.component.less'
|
|
})
|
|
export class MenubarComponent {
|
|
|
|
@Input()
|
|
current!: Circuit;
|
|
|
|
@Output()
|
|
load: EventEmitter<Circuit> = new EventEmitter();
|
|
|
|
circuits: Circuit[] = [DEMO_001, DEMO_002, DEMO_003, DEMO_004];
|
|
|
|
}
|