I know this is some basic stuff for a lot of you but I'm trying to figure it out.
I saw this other post on doing ngif else conditionals with templates: How to use *ngIf else?.
<div *ngIf="isValid;then content else other_content">here is ignored</div>
<ng-template #content>content here...</ng-template>
<ng-template #other_content>other content here...</ng-template>
So, how do you get the template to know to translate the condition to its value.
e.g. someObj.someProperty If it exists then display it else display a text message.
<div *ngIf="someObj.someProperty;then content else other_content">here is ignored</div>
<ng-template #content>someObj.someProperty</ng-template>
<ng-template #other_content>not specified</ng-template>
FYI: I'm using https://stackblitz.com/
Why would I use that and not my desktop one may ask.
Easy my machine is locked down and I'm trying to get admin rights so I can install software on it. Try learning something with notepad and no way to run the code.