JSFiddle - React, Tailwind, and code Playground
by redaemn
HTML
<div ng-app ng-controller="ctrl">{{text}}</div>
JavaScript
var ctrl = function($scope, $http) {
$scope.text = 'nothing was called; check browser console for errors!!';
$http.get('/img/logo.png')
.success(function() {
$scope.text = 'success was called';
})
.error(function(a1, a2, a3, a4) {
$scope.text = 'error was called';
});
};