fbpx
Conditional Statements

Conditional Statements

If you are reading this, then you should be familiar with flow controls like if statements. In JavaScript, if statements are used to control the flow of the app and make certain decisions. Angular has similar conditional statements called *ngIf. *ngIf is a directive. A directive is an attribute you can give a HTML element, and change the element’s behaviour or they way it looks. It’s possible to create your own directives in Angular, but for now let’s just work…

Read More Read More