SyntaxFix
Write A Post
Hire A Developer
Questions
In Angular 4.0 if..else syntax is quite similar to conditional operators in Java.
if..else
In Java you use to "condition?stmnt1:stmnt2".
"condition?stmnt1:stmnt2"
In Angular 4.0 you use *ngIf="condition;then stmnt1 else stmnt2".
*ngIf="condition;then stmnt1 else stmnt2"