upsi dupsi, da sind noch die componenten 🤡
This commit is contained in:
0
src/app/theater-layout/theater-layout.component.css
Normal file
0
src/app/theater-layout/theater-layout.component.css
Normal file
3
src/app/theater-layout/theater-layout.component.html
Normal file
3
src/app/theater-layout/theater-layout.component.html
Normal file
@@ -0,0 +1,3 @@
|
||||
@for (row of seatsPerRow(); track $index) {
|
||||
<app-seat-row class="flex justify-center" [rowSeatList]="row"></app-seat-row>
|
||||
}
|
||||
13
src/app/theater-layout/theater-layout.component.ts
Normal file
13
src/app/theater-layout/theater-layout.component.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import {Component, input} from '@angular/core';
|
||||
import {Sitzplatz} from '@infinimotion/model-frontend';
|
||||
import {TheaterSeatState} from '../model/theater-seat-state.model';
|
||||
|
||||
@Component({
|
||||
selector: 'app-theater-layout',
|
||||
standalone: false,
|
||||
templateUrl: './theater-layout.component.html',
|
||||
styleUrl: './theater-layout.component.css'
|
||||
})
|
||||
export class TheaterLayoutComponent {
|
||||
seatsPerRow = input.required<{ seat: Sitzplatz, state: TheaterSeatState }[][]>();
|
||||
}
|
||||
Reference in New Issue
Block a user