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.