Skip to content
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
@wardbell

Description

@wardbell

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions