JSFiddle - React, Tailwind, and code Playground

HTML

<div ng-app>
    <p>
        <input ng-model="query" /> - Try setting the value to 0, see what happens.
    </p>
    <p ng-if="query">
        Value set!
    </p>
    <p ng-if="!query">
        Value not set!
    </p>
    
    
    <p>
        <input ng-model="query2" /> - Fix: use !! to cast to boolean.
    </p>
    <p ng-if="!!query2">
        Value set!
    </p>
    <p ng-if="!query2">
        Value not set!
    </p>
</div>