Replies: 4 comments 10 replies
-
Hmm I think it will be a good quality update for users, there shouldn't be any problems with this as well. It's a nice idea we should do this 👍 |
Beta Was this translation helpful? Give feedback.
-
Interesting but I think it will make us refactor a lot of our code since the current |
Beta Was this translation helpful? Give feedback.
-
It definitely is a more viable and familiar approach. Manipulating types with Object also easier. I support this, but as @Icyscools said it will cost us some time to refactor. |
Beta Was this translation helpful? Give feedback.
-
I just thought of a problem that can cause if we redesign the Normally, we store the In this purposed design, we will change a list to an object to store // with current design
let formUsername = form.get('username')
let formUsername = form.get('password')
// with the purposed design
let formUsername = form.username
let formPassword = form.password However, as I told you: the |
Beta Was this translation helpful? Give feedback.
-
Hi, everyone!
I'm thinking of changing the argument we pass to the
FormGroup
constructor a bit.As you probably noticed, the
name
is the only required property, even thetype
is optional as we default this totext
. This is not accidental, we patterned this from attributes that the out-of-the box HTML element<input>
takes.Now, consider the current configuration in our example:
It takes an array of
ControlConfig
objects.I'm thinking of changing this so that the
FormGroup
constructor will instead take one object:I think this better represents the configuration we want, makes it simpler for users, and will have more flexibility later on.
Let me know if you see some possible problems with this!
cc team members @fazzaamiarso @Icyscools @Preet-Sojitra @Lalit3716
Beta Was this translation helpful? Give feedback.
All reactions