Accessing form fields in tabs


#1

Hey,

I have this case: http://plnkr.co/edit/bGbXD5eAryDnDPv6DnAm?p=preview

I want to validate and check all forms data when Done is clicked, however, I can’t access items from hidden tab, as it seams it’s not existing.

Any ideas how I could go over this? Done button should validate and submit all fields between the tabs, as it’s one model in backend…

Thanks,
D.


#2

@Calendee, You were handling a lot of forms and validation in your app, any ideas?


#3

There’s no way to do this. The tab that is not active does not actually exist in the DOM.

Contains a tab’s content. The content only exists while the given tab is selected.

/**
 * @ngdoc directive
 * @name ionTab
 * @module ionic
 * @restrict E
 * @parent ionic.directive:ionTabs
 *
 * @description
 * Contains a tab's content.  The content only exists while the given tab is selected.
 *
 * Each ionTab has its own view history.