JSFiddle - React, Tailwind, and code Playground

by madil1548

HTML

<body ng-app="myApp"> 
<h1>Example of Multiple Controllers</h1> 
<div ng-controller="HomeController"> Controller Name: {{controllerName}}
<br> 

<input type="text" ng-model="message"/> 
</div> 
<br>
<div ng-controller="AboutController"> Controller Name: {{controllerName}}

<br> <br>
<input type="text" ng-model="message"/> 
</div>
</body>

JavaScript

var app = angular.module('myApp', []);   
app.controller('HomeController', function ($scope) { 
$scope.controllerName = "HomeController"; 
 
});   
app.controller('AboutController', function ($scope) { 
$scope.controllerName = "AboutController"; 

});