*it should work вторник, 4 февраля 2014 г., 9:30:53 UTC+3 пользователь Олег Истомин написал: > > I need own directive (on an element with ng-form). It is nessesary for > handling server error responces and set validity to incorrect fields by > ngFormController. I don't understand why I can use ngModelController, but > can't use ngFormController (ng-form contains controller. I should work) > > понедельник, 3 февраля 2014 г., 12:45:20 UTC+3 пользователь Justin Walsh > написал: >> >> The require attribute of a directive allows you declare a dependency on a >> *controller >> *in another directive, by specifying a directive name (which contains >> the controller). >> If that what you are trying to achieve? >> >> On Monday, February 3, 2014 10:25:56 AM UTC+2, Олег Истомин wrote: >>> >>> Controller 'ngForm', required by directive 'myDirective', can't be found! >>> >>> require: 'ngModel' work, 'ngForm' doesn't work >>> http://plnkr.co/edit/rQ98K7HEJCc9HJHKCdjX >>> >>
-- 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/groups/opt_out.
