![]() |
VOOZH | about |
In AngularJS, in order to hide or show data or content, we can use the *ngIf structural directive. By using this, we can evaluate conditions and then *ngIf based on the condition displays the content. For example, if the condition for *ngIf is true then the content will be displayed and if the condition is false then the content is not displayed.
Approach:
Example: This example describes the rendering of data based on the specific condition in AngularJS.
Output: You can clearly see the 3rd item is hidden because its condition is false. In order to give a more-visible example, I left it blank.