I have this weird, weird issue.
- I apply
ng-model
to my input - I hit
Get IP
- I set the controller's property to match the
ng-model
- The input should update
This is what SHOULD happen. However, I have a weird issue, where the data binding won't get updated, until I unfocus/blur the input.
https://jsfiddle.net/941d7qat/
var app = angular.module('app', []);
app.controller('Controller', function() {
this.ip = "";
$("#getIP").on("click", () => {
$.get("https://api.ipify.org/?format=json", (response) => {
this.ip = response.ip;
});
});
});
I've worked with AngularJS for a few months now (although with TypeScript) and I've never experienced this before. I can see