I want to use the ng-model attribute in a custom element. The problem is, that I need to set the ng-model with an expression:
ng-model=\"{{anyVariable}}\" >
Try a version of this:
.directive('myDir', function() { return { restrict: 'EA', scope: { YYY: '=ngModel' }, require: 'ngModel', replace: true, template: '' }; });