我想在我的angular项目中使用*ngIf。我使用app.component.html来处理登录页面和仪表板。所以我想在用户登录网站之前隐藏仪表板。在用户登录到系统后,我想显示仪表板。所以我使用*ngIf来处理这个问题。我使用下面的代码来处理这种情况。 在我的app.component.html中,我使用下面的div来显示每个用户何时没有登录到系统。<div class="login-page" *ngIf="!isLog()">
... go some code h
我正在尝试实现一个"editComponent“,它可以在pageComponent或dialogComponent中显示,但同一组件中被提升的ng-content标记不起作用(仅适用于las ng-content标记): <ng-content></ng-content>
<!-- for pages not in dialog popups put all div stru