DEV Community

Discussion on: How to select a front-end framework?

Collapse
 
imben1109 profile image
Ben

Could these framework only be used as SPA? Actually, I do not the advantage of SPA.

I think a could try try vanillajs as so many people have mentioned.

May I know if vanillajs support two-way binding.

Collapse
 
quii profile image
Chris James

No they can be used for other things but that's the usual cited use-case.

What exactly do you mean by 2 way binding, what do you need? Is it necessary for every project?

Thread Thread
 
imben1109 profile image
Ben

two-way binding is just a concept which your variable value is bind the dom element such as input.

For example, there are a input filed and javascript variable, v. When you change the variable,v to 10, you see the field become 10. If you input 10 to the field, you will get 10 from variable v.

Reference: docs.angularjs.org/tutorial/step_06

Thread Thread
 
imben1109 profile image
Ben

Vanilla Js is just a joke. -,-

It is just a regular js.

Thread Thread
 
quii profile image
Chris James

No, that's the point.

Thread Thread
 
imben1109 profile image
Ben