AngularJS isolated scope: preventing accidental parent scope mutation
Goal Design a directive that uses an isolated scope to encapsulate its data while ensuring it never writes to a parent scope variable inadvertently. The directive should expose a two‑way binding to a parent model, but any internal state changes must remain local. Constraints and Uncertainty AngularJS isolated scopes prevent accidental mutation of parent scop