Your using Angular 1 directives. For Angular 2 use *ngIf
for components that do not need to be in the DOM when they are hidden or bind to the HTML hidden property [hidden]
if you want the component to always be in the DOM but hidden with CSS.
e.g:
or
Angular 1 to Angular 2 reference
*ngIf