@ChildView('f') myForm;

don't if it allows access to the form as you expect though.

Maybe you want to define the form in code and then assign the form to the 
element. Don't know forms well enough yet to know how this works.

On Tuesday, February 16, 2016 at 10:20:37 AM UTC+1, Manfred Steyer wrote:
>
> Hi,
>
> is there a way, to access a Template-Variable from within the 
> Component-Controller?
>
> I have something like this:
> <form #f="ngForm"> ... </form>
>
> And I want to get access to the handle f in the Component-Controller's 
> routerCanDeactivate method, to check, whether the form is dirty.
>
> Wishes,
> Manfred
>

-- 
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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to