JSFiddle - React, Tailwind, and code Playground

by vural kaya

HTML

<!doctype html>
<html >
    <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
    
<body ng-app="myapp">
<div ng-controller="MyController" >
    <div ng-switch on="myData.switch">
        <div ng-switch-when="1">1. Durum</div>
        <div ng-switch-when="2">2. Durum</div>
        <div ng-switch-default>1. Durum ve 2. Durum dışında</div>
    </div>
</div>

<script>
   var myapp = angular.module("myapp", []);
    
    myapp.controller("MyController", function($scope) {
      $scope.myData = {};
      $scope.myData.switch = 1;
    });
</script>


</body>
</html>