It works! Thank you!

вторник, 4 февраля 2014 г., 19:59:02 UTC+3 пользователь Kai Groner написал:
>
> Hi Олег,
>
> The ng-form directive is just an alias for form (because html doesn't 
> allow nesting of form elements).  If you use require: 'form' instead of 
> require: 'ngForm', then it will work.,
>
>
> Kai
>
>
> On Tue, Feb 4, 2014 at 3:41 AM, Олег Истомин <[email protected]<javascript:>
> > wrote:
>
>> Yes. Now I use scope (scope[attr.name][error.field].$setValidity(error.type, 
>> false);), but it is unbeautiful, I think. More I can't catch submit event 
>> if I use formElem.on('submit', fn). ng-submit use same code similar my 
>> example and work correct.
>>
>> вторник, 4 февраля 2014 г., 11:37:48 UTC+4 пользователь Sander Elias 
>> написал:
>>
>>> Hi Олег,
>>>
>>> You are aware of the fact that the formcontroller is exposed to the 
>>> scope? Put a name in it, and it's available to you. 
>>> http://plnkr.co/edit/WSQ8BYAl2xoHRVdf6hqQ?p=preview
>>>
>>> Regards
>>> Sander
>>>
>>>
>>>  -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/angular.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

-- 
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.

Reply via email to