Hi all, 

I'm following this tutorial:
https://ultimatecourses.com/blog/angular-ngif-else-then

The component:

...
@Component({
    templateUrl: './list-ligne.component.html',
    ...
})
...
export class ListLigneComponent { ... }

The template:

<div *ngIf="isLoggedIn; else loggedOut"> Welcome back, friend. </div> 
<ng-template #loggedOut> Please friend, login. </ng-template>

When "ng build --prod": 

Property 'loggedOut' does not exist on type 'ListLigneComponent'.

How to tell "ng build" that "loggedOut" should not be seen as a property?

Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/8ed139ac-df27-4d02-b453-dc85de3c7716%40googlegroups.com.

Reply via email to