One way data binding in Angular 1
Closed this issue · 2 comments
fadamakis commented
The correct syntax is <Child foo='::scope.bar' />
jeffcarp commented
Thank you @fadamakis!
jeffcarp commented
Thinking about this more - I think this might require a new section. These are two distinct behaviors:
- One-way data binding - where a parent's property is passed down but still updated
- One-time data binding - where a parent's property is passed down once and never updated again (e.g. your example
<Child foo='::scope.bar' />
)