This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Description
Using a transclude directive we have
- A binding to a value 'someVar'
- A binding to a value in an object 'data.someVar'
We have a textbox inside a transclude which is bound, and bind the value inside and outside the transclude for display.
In the first case we lose the binding between the two scopes as soon as we type text into the text box.
In the second case the binding is retained.
http://jsfiddle.net/Saulzar/pnSNj/12/
<wrap title="set someVar">
<input type="text" ng-model="someVar">
<p>Inside wrap: {{ someVar }} </p>
</wrap>
<p>Outside wrap: {{ someVar }}</p>
C1 = function ($scope){
$scope.someVar = "Hello world";
$scope.data = {someVar: "Hello world"};
};