Logic related to the user-flow step should be moved out of the template and into a separate service.
Public Methods
It should have a method that when called can reset to a default. This actually means clearing it and leaving it with a type control only or it can also add the default values and controls for a newly selected step type.
[ ] resetStepForm
It should have a method to add new options or props to the step.
[ ] addStepProp
Public Properties
It should expose all the necessary information to display the form.
Description
Logic related to the user-flow step should be moved out of the template and into a separate service.
Public Methods
It should have a method that when called can reset to a default. This actually means clearing it and leaving it with a type control only or it can also add the default values and controls for a newly selected step type.
It should have a method to add new options or props to the step.
Public Properties
It should expose all the necessary information to display the form.
type: formControl; props: stepProp[] optionalProps: stepProp[]