What is the equivalent of ngShow and ngHide in Angular 2+?

The hidden property can be used for that See also https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/hidden issues hidden has some issues though because it can conflict with CSS for the display property. See how some in Plunker example doesn’t get hidden because it has a style set. (This might behave differently in other browsers – I tested with Chrome 50) workaround You can fix it by adding To a … Read more

How to use *ngIf else?

Angular 4 and 5: using else : you can also use then else : or then alone : Demo : Plunker Details: <ng-template>: is Angular’s own implementation of the <template> tag which is according to MDN : The HTML <template> element is a mechanism for holding client-side content that is not to be rendered when … Read more