JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" ng-model="blub"/>
<br/>
<button ng-click="blub = 'xxxx'">X</button>
<br/>
<button ng-click="blub = 'yyyy'" ng-if="blub.length">Y</button>

JavaScript

angular.module('test', [])
.controller('Main', function ($scope) {
    // nothing to do here
});