Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Not able to understand Ionic2 Segment component using formBuilder

$
0
0

@kkap wrote:

I wish to use Ionic2's Segment component to create a three-phase form filling process. e.g. consider a money transfer scenario - 3-phases of setting up money transfers are - 1. Fillup From Account details - From Account# and BankRouting#, 2. Fill up 'To' account details - To Account# and BankRouting#. and 3. Specify Date when to Transfer money and Number of occurrence.
So the 3 segments I would have in my view are - 'From Account', 'To Account', 'Date and Frequency'

the documentation of 'Segment' component is not very clear how to implement 'Segment' for this requirement, like how to specify the set of form controls to be shown in each segment. Also the example in API docs shows ngControl in 'ion-segment' tag. but 'ion-segment' will point to a html segment specified by its 'value' attribute and that html segment may have multiple form controls each with different ngControl.

I am bit lost how to get this segments configured with formbuilder, anyone has any example or a better documentation/link in Ionic2, kindly share.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>