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/ng-show; either test or inverted test is shown  #5857

Closed
@eirikwang

Description

@eirikwang

There is an issue with the letters f, n, and [] when used in ng-if.

<p ng-if="name">true</p>
<p ng-if="!name">false</p>
<input ng-model="name">

when input is f, n or [], either true, or false is shown. I belive this has something to do with the toBoolean function.

http://plnkr.co/edit/Pypt8yaQWzHDVD9MOusy

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