I have an issue when using ng-model
inside ng-transclude
.
As ng-transclude
creates child scopes the value can't be set to the outer scope anymore.
Without ng-transclude everything works fine:
{{text}}
<div>
<textarea ng-model="text"></textarea>
</div>
With ng-transclude the text won't update as the textarea modifies only the child scope:
{{text}}
<pane>
<textarea ng-model="text"></textarea>
</pane>
http://plnkr.co/edit/GKf7WhnnItVNeBpvSB0F?p=preview
Is there any other way then using ng-model="$parent.text"
?