JSFiddle - React, Tailwind, and code Playground
by jhoguet
HTML
<div ng-app="myApp" ng-controller="childController">
<h1>{{child.getFullName()}}</h1>
</div>
JavaScript
angular.module('myApp', [])
.controller('childController', function ($scope, $interval) {
var count = 0;
function Child(first, last){
this.getFullName = function(){
count++;
console.log(count)
return first + ' ' + last;
};
}
$interval(function(){ /* nothing relevant */},100);
$scope.child = new Child('Lance','Hoguet');
});