JSFiddle - React, Tailwind, and code Playground

HTML

<div ng-app="app" ng-controller="Ex1 as Ex1">
  [Ex1.x, Ex1.y] = {{[Ex1.x, Ex1.y].toString()}}<br>
  <ng-switch on="[Ex1.x, Ex1.y].toString()">
    <div ng-switch-when="0,true">
      0,true -- jaj
    </div>
    <div ng-switch-when="1,true">
      1,true -- jaj
    </div>
    <div ng-switch-when="2,false">
      2,false -- jaj
    </div>
    <div ng-switch-default>
     default... booo
    </div>
  </ng-switch>
</div>

JavaScript

angular
	.module('app', []);
  
angular
	.module('app')
  .controller('Ex1', function ($interval) {
  	this.x = 1;
    this.y = false;
  
  	$interval((function () {
    	this.x = Math.round(Math.random() * 2);
    	this.y = Math.random() > 0.5;
    }).bind(this), 1000);
  });