I want to show or hide a template based on the boolean value in Angular 4. Below are the HTML and code
--- This is inside Home.Component.HTML
<ng-template [ngIf]="isSummaryViewVisbile" #pricebookView ></ng-template>
---- This is inside HomeComponent
isSummaryViewVisbile: boolean = true;
Above code doesn't work, it always hides template although I'm assigning true.
Thanks in advance.