So I want to do what I did in this question: AngularJS: Two way data binding fails if element has ngModel and a directive with a local scope
but without using an attibute value to bind. I've tried using just an equals sign
scope: {bindToParent: '='},
but it doesn't seem to work? Can someone change this jsfiddle: http://jsfiddle.net/ews7S/1/ to show me how I can directly bind to the parent property without having to use an attribute in the element?
You have in your fiddle:
<input type="text" ng-model="testModel" dir="123">
If you want dir
to not have a value, well, dir
doesn't need a value. This works as well in your fiddle:
<input type="text" ng-model="testModel" dir>