Хочу в своей кастомной директиве получить значение модели, т.е. как-то так:
<input type="radio" value="1" ng-model="age" my-custom>
app.directive("myCustom", function() {
   return {
      require: "ngModel",
      link: function(scope, elem, attrs, ngModel) {
         console.log(ngModel.$modelValue);  // always NaN :(
      }
   };
});
Но всегда получаю NaN
Даже если в контроллере задать $scope.age = 1;
Как же мне получить $modelValue?