I am having an issue with AngularJS's one-time binding feature using the ::
expression. Despite my code setup, the values are still changing. I must be missing something crucial here.
Consider this controller:
$scope.name = "Some Name";
$scope.changeName = function() {
$scope.name = "Another Name";
}
And this HTML:
<h1>{{::name}}</h1>
<button ng-click="changeName()">click me</button>
The value of the name model is not remaining static as expected. Any suggestions or help on where I might be going wrong?