Hi All. I've got a bit of a tricky problem, in my directive I have `require: '?ngModel'`, so in my link function `link: function(scope, element, attrs, ngModel)` ngModel will be null if the directive is invoked without an ngModel attribute. I'm fine with this it's just how angular works.
In the case of ngModel being null, is there any way to manually invoke the ngModelController and set it to the ngModel variable? Something like (in link function) `if(ngModel === null) ngModel = invokeNgModelController();` I've tried everything I can think of and come up blank. The reasoning behind this is that we want this directive to be able to function like a form input without ngModel but it would be good if we could still use $render for cleanness of code in that case. Any help would be greatly appreciated!! Thanks, Simeon. -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
