JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://code.angularjs.org/1.0.1/angular-1.0.1.js"></script> 
<div ng-app="myApp" ng-controller="TestCtrl">
    <div ng-init="getData()">
        <div>Count: {{ changes }}</div>
    </div>
</div>

JavaScript

angular.module("myApp", []);

function TestCtrl($scope, $http) {
    $scope.getData = function() {
        // Arbitrary HTTP call...
        var http = $http({
            method: "GET",
            url: "/provegard/3AXPg/"
        });
        http.success(function(response, status) {
            $scope.data = {name: "test"};
        });
    };
    
    $scope.changes = 0;
    $scope.$watch("data", function(newValue, oldValue) {
        $scope.changes++;
    }, true);
}