I recently had a colleague at work demonstrate a peculiar quirk with one-time binding in Angular.
Scenario:
Imagine having an element with text being bound using one-time binding inside a block that is conditional on ng-if. If you update the value, say by adding some letters, and then change the ng-if condition, the value from the one-time binding gets updated.
HTML:
<div ng-if="a" class="blue">{{ ::text }}</div>
Is this a bug or an expected behavior?
Check out this example of the issue: http://codepen.io/samot/pen/rLJAdN