#Hi, how do I create an if else condition in angular html code?
4 messages · Page 1 of 1 (latest)
how do i do that with this already existing:
ngIf="modalType === 'save' || modalType === 'activate'"
What you have inside the ngIf is the condition. You add the else after as shown in my answer
The "else" syntax for NgIf is one of my least favorite things in the framework.