You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.
I thought about this for quite a while now and I think it does make sense. Think of the following scenario:
I have a form, like:
<formdata-app="MyFormComponent"></form>
MyFormComponent might combine quite a lot of functionality, like some visual effects, validation and printing of validation messages.
Since at least two of these functionalities do not depend on each other, you would have better semantics and decoupling by writing something like this:
If you really have disjunct functionality (like eye-candy <-> validation) it would just be great to have the option to apply all at once, whithout the need to hard-wire them into each other on JS side.
One could go pretty mad about this one and write something like this:
If these apply in order, you would get interchangeable and functionality-disjunct components, with the positive effect of describing behavior on the fly.
What do you think?
The text was updated successfully, but these errors were encountered:
Yeah I also had this in mind a while ago, and it does indeed make a lot of sense. So if you have a some spare time, go for a PR - Or I will implement this as soon I am Done with the ES6 rewrite as seen in #6
I thought about this for quite a while now and I think it does make sense. Think of the following scenario:
I have a form, like:
MyFormComponent might combine quite a lot of functionality, like some visual effects, validation and printing of validation messages.
Since at least two of these functionalities do not depend on each other, you would have better semantics and decoupling by writing something like this:
If you really have disjunct functionality (like eye-candy <-> validation) it would just be great to have the option to apply all at once, whithout the need to hard-wire them into each other on JS side.
One could go pretty mad about this one and write something like this:
Which would be easily interchangeable to:
If these apply in order, you would get interchangeable and functionality-disjunct components, with the positive effect of describing behavior on the fly.
What do you think?
The text was updated successfully, but these errors were encountered: