I would like to read the initial value ngModel.$viewValue from different directive.
# coffee script app.directive \'directive\', -> return { requ
No need to watch and ng-init is bad. Something like..
return { require: 'ngModel', link: function(scope, element, attrs, ngModel) { var getter = $parse(attrs.ngModel); var value = getter(scope); } };
Here value will give the initial bound value in model.
value