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 doesn't work as expected #6835

Closed
Closed
@guidobouman

Description

@guidobouman

When using two ng-if's, one for variable and one for !variable, you'd expect one of them to always validate. With the string 0 this is not the case though. A double negation is required to achieve the expected result.

jsFiddle example:
http://jsfiddle.net/u4Fay/1/

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