Jayce P. answered 22d
Mid-Level Software Engineer Expert-Level jQuery Experience
Great question. So AngularJs has different boolean logic than regular Javascript. So it reads anything that is "f" or "F" as a false because of it's built-in utility funciton toBoolean. In regular Javascript only null, 0, "", false, or [] would result to false, but in AngularJS "0", "", "null", [], "f", "false", "n", "no", "undefined" result to false. If you want to use something else you can specify your exact comparators within the ng-if attribute. For example ng-if:"test && test !== 'f' && test !== 'F'"