<app-header [isLoggedIn]="isLoggedIn"></app-header>
<div class="left-menu">
<app-login (loginEmitter)="updateLoginStatus($event)"></app-login>
</div>
<div class=" main-section">
<router-outlet></router-outlet>
</div>
<app-footer></app-footer>
export class SystemComponent {
isLoggedIn = Boolean(window.localStorage.getItem('isLogged'));
updateLoginStatus($event: Event) {
$event ? this.isLoggedIn = true : this.isLoggedIn = false;
}
}