Angular 2 CSS Visibility

Angular 2 CSS Visibility is a property that allows us to show or hide an HTML element, the visibility property defines whether an element is visible or not. (E.g. div)

angular 2 css visibility example
angular 2 css visibility example

Invisible elements take a space from the page. If you want that your element to be invisible and not taking a space from the page use the display property.

live example at the end of the article

try angular 2 visibility
try angular 2 visibility

The property syntax:

visibility: visible|hidden|collapse|initial|inherit;

angular 2 visibility