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-show expression evaluates to false when passed "f" or "F" #7312

Closed
@blown-capacitor

Description

@blown-capacitor

For example assuming $scope.mystring = "F";

<div ng-show="mystring">{{mystring}}</div>

The div is hidden by the ng-show directive.

Note you can achieve desired functionality using .length <div ng-show="mystring.length"></div>

JSFiddle example

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions