I would like to read the initial value ngModel.$viewValue from different directive.
# coffee script
app.directive \'directive\', ->
return {
requ
put your actions within a $timeout... like what you do with $apply, so your code will run after $digest finished it's process...
like this:
link: function (scope, el, attr, ctrl) { //Ctrl will bind to required ones
//ctrl[0] -> ngModel
$timeout(function() {
scope.parentId = ctrl[0].$viewValue;
scope.startUp();
}, 0);
}