Thanks to visit codestin.com
Credit goes to github.com

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 always evaluates to false if first variable is an empty array #7989

Closed
@liquidpele

Description

@liquidpele

ng-if="var_empty_array || true" -> evaluates to false
ng-if="true || var_empty_array" -> evaluates to true

This is a logical inconsistency.

Example:
http://plnkr.co/edit/1I64ks2RpGOCnJXoUwD8?p=preview

Cheers.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions