TypeError: Cannot read property '$setPristine' of undefined
at app.js:599
at angular.js:13292
at m.$get.m.$eval (angular.js:14547)
at m.$get.m.$digest (angular.js:14363)
at m.$get.m.$apply (angular.js:14652)
at l (angular.js:9734)
at P (angular.js:9924)
at XMLHttpRequest.H.onload (angular.js:9865)
this.UserService.updateProfile(this.user) .then(function (result) { console.info('updated profile'); _this.editTrigger(); _this.infoForm.$setPristine(); // <-- })
TypeError: Cannot read property '$setPristine' of undefined at app.js:599 at angular.js:13292 at m.$get.m.$eval (angular.js:14547) at m.$get.m.$digest (angular.js:14363) at m.$get.m.$apply (angular.js:14652) at l (angular.js:9734) at P (angular.js:9924) at XMLHttpRequest.H.onload (angular.js:9865)