init to pos domain

This commit is contained in:
2026-03-18 13:35:57 +03:30
parent f2766e2d7d
commit 1e2f94261e
42 changed files with 635 additions and 809 deletions
@@ -0,0 +1,5 @@
@if (loading()) {
<shared-page-loading />
} @else {
<router-outlet></router-outlet>
}
@@ -0,0 +1,26 @@
import { PageLoadingComponent } from '@/shared/components/page-loading.component';
import { Component, computed, inject } from '@angular/core';
import { RouterOutlet } from '@angular/router';
import { PosStore } from '../pos.store';
@Component({
selector: 'pos-layout',
templateUrl: './layout.component.html',
imports: [PageLoadingComponent, RouterOutlet],
})
export class PosLayoutComponent {
constructor() {}
private readonly store = inject(PosStore);
readonly loading = computed(() => this.store.loading());
readonly posInfo = computed(() => this.store.entity());
getData() {
this.store.getData();
}
ngOnInit() {
this.getData();
}
}