JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.15/angular.min.js"></script>
<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.replaceState(null, '', '/hello');
    angular.element(document.body).scope().$apply();
}