JSFiddle - React, Tailwind, and code Playground

by dbinit

HTML

<script id="inc.html" type="text/ng-template">
    <button onclick="setLoc()">Set Location</button>
</script>
<div ng-include="'inc.html'"></div>

JavaScript

angular.module('loc', []);

function setLoc() {
    history.pushState(null, '', '/hello');
    angular.element(document.body).scope().$apply();
}