JSFiddle - React, Tailwind, and code Playground

by shushanth pallegar

HTML

<div ng-app="myApp" ng-controller="myCtrl">
    <input type="text" ng-model="testValue"/>
    <button ng-click="testIt(testValue)">newTest</button>
    
    {{testValue}}
    {{newTestValue}}
 </div>

JavaScript

var App = angular.module("myApp",[]);

App.controller("myCtrl",myCtrl);

myCtrl.$inject = ["$scope"];

function myCtrl($scope){
     $scope.newTestValue = '';
    $scope.testIt = function(v){
    console.log(v)
    $scope.newTestValue = v+"hello";
    
    
    }
}