JSFiddle - React, Tailwind, and code Playground
by Alberto Naperi Jr.
HTML
<form ng-controller="CtrlApplicantInfo as vm">
<input id="Name" name="Name" ng-model="vm.ApplicantInfo.Name" class="form-control" type="text" placeholder="Name" />
<input id="Age" name="Age" ng-model="vm.ApplicantInfo.Age" class="form-control" type="text" placeholder="Age" />
</form>
JavaScript
var myApp = angular.module('myApp', []);
myApp.controller('CtrlApplicantInfo', ['$scope', '$http', '$interval', '$filter', function ($scope, $http, $interval, $filter) {
var vm = this;
$scope.$watch("vm.ApplicantInfo", function (newValue, oldValue) {
console.log("something has changed");
console.log("newValue: " + JSON.stringify(newValue));
console.log("oldValue: " + JSON.stringify(oldValue));
}, true);
}]);