Skip to main content

ngIf with OR condition

ngIf is commonly used in template part of the angular component, using ngIf we can satisfy single or multiple conditions. we use && operator to satisfy both the conditions. || operator to satisfy any of the conditions. Here are the examples

Using OR condition


Using AND condition


Using Boolean value



  1. Much thanks for this valuable article. This is a very nice blog that I will definitively come back to more times this year! Love to read it,Waiting For More new Update and I Already Read your Recent Post its Great Thanks.
    game online Battle for the Galaxy Play Break The Cup Toon Cup 2017 best online game


Post a Comment