You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now, the line <button mat-icon-button mdTooltip="Log out" (click)=onClickLogout() *ngIf="authService.isLogged()">in header.component.html is allowed to access authService.isLogged().
Your environment - windows/Linux, Devonfw version , component
irrelevant
The text was updated successfully, but these errors were encountered:
Category: Bug
Severity: Medium
Expected behaviour (In case of bug)
ng build --prod
is able to build the project for productionActual/current behaviour (In case of bug)
ng build --prod
produces an error message:Steps to reproduce (In case of bug)
ng build --prod
when finished the tutorialDescription of issue / expected enhacement /Comments
As described in https://github.com/devonfw/devonfw-tutorial-sources/wiki/build-devon4ng-application#separating-the-header-to-the-layout
However, when building for production using
--prod
AoT is applied that recognizes the html as a separate class. (see https://medium.com/spektrakel-blog/angular-writing-aot-friendly-applications-7b64c8afbe3f for a discussion)Solution:
Now, the line
<button mat-icon-button mdTooltip="Log out" (click)=onClickLogout() *ngIf="authService.isLogged()">
in header.component.html is allowed to accessauthService.isLogged()
.Your environment - windows/Linux, Devonfw version , component
irrelevant
The text was updated successfully, but these errors were encountered: