This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
ng-If doesn't work with ng-Include #3307
Closed
Description
This doesn't work ... although it seems it should:
<div data-ng-if="oneChoice" data-ng-include="'optionsRadio.html'"></div> <div data-ng-if="!oneChoice" data-ng-include="optionsCheckbox.html'"></div>
This alternative works as expected:
<div data-ng-switch="oneChoice"> <div data-ng-switch-when="true" data-ng-include="'optionsRadio.html'"></div> <div data-ng-switch-when="false" data-ng-include="'optionsCheckbox.html'"></div> </div>
Metadata
Metadata
Assignees
Labels
No labels