import { Component } from "@angular/core"; @Component({ template: ` ` }) export class NgIfNoLayoutComponent { public show = false; toggle() { this.show = !this.show; } }