[Solved] Angular: ng-model and ng-show not working


ng-show and ng-model are part of angularjs (1.x). In angular 4, you can do the following:

<div>
  <input type="checkbox" unchecked name="advanced" [(ngModel)]="checked">
    <p>Advanced search</p>
</div>
<p [hidden]="!checked">
  advanced-search works!
</p>

p.s. the user cleared in his comment on the question that he is using angular4.

4

solved Angular: ng-model and ng-show not working