I'm trying to one-way bind a URL Parameter 'email' to the value of an input field using Angular. The desired effect is that whenever the email parameter in the URL changes, the input field will change to match the new email parameter vaue. I'm doing this in my js file:
$scope.inputEmail = $location.search()['email']
To modify the value of the input field I'm using its ng-model, 'inputEmail'. When I do this, the value of the input field is not changing when I change the URL email parameter. What am I doing wrong?