JSFiddle - React, Tailwind, and code Playground
by icetech
HTML
<div ng-app id="wrap" ng-controller="Ctrl">
{{message}}<br>
{{info}}
</div>
<button onClick="hi()">click me </button>
JavaScript
function Ctrl($scope) {
$scope.message = "hi robi";
$scope.updateMessage = function(_s){
$scope.message = _s;
};
}
function hi(){
var scope = angular.element(document.getElementById("wrap")).scope();
scope.$apply(function() {
scope.info = "nami";
scope.updateMessage("i am new fans like nami");
});
}