feimosi / frameworks-code-comparison

:vs: :fire: Code comparison of modern web frameworks, based on React, Angular and Vue.js
89 stars 29 forks source link

Add VueJs #19

Closed HendrikGrobler closed 6 years ago

HendrikGrobler commented 7 years ago

Hi, how do you feel about adding VueJs to this?

I would be willing to create PRs.

feimosi commented 7 years ago

That'd be awesome! I was thinking about Vue.js for quite some time.

HendrikGrobler commented 7 years ago

Added #20 and #21 so far, will keep adding more as I get time.

dillonchanis commented 7 years ago

I can add some examples of Vue as well, I'll tackle Filters first. Maybe show some examples using render methods instead of templates.

feimosi commented 7 years ago

Nice! Feel free to do so, just agree on who does what so you don't duplicate the work.

dillonchanis commented 7 years ago

Awesome, I'll go ahead and get started on the Filter example with Vue and then do a simple example with Lists using render rather than the v-for directive so someone else could provide that.

HendrikGrobler commented 7 years ago

Great! I'm happy to do one for DI, though it's much the same as React in that it doesn't by default really use DI. However it does support dependency injection as per: https://vuejs.org/v2/api/#provide-inject It also mentions in the docs that it's not really a common use case thing so I'm not sure if I should include it. It mentions something about being similar to React's context which I don't see in the React example.

HendrikGrobler commented 7 years ago

Decided to do an example of templates while I wait on feedback for DI, would like some feedback on the wording: #24

feimosi commented 7 years ago

Well, then I'd give a basic example similar to React's and mention in one sentence at the bottom:

There's also provide and inject mechanism which is primarily provided for advanced plugin / component library use cases.

feimosi commented 6 years ago

Hi @HendrikGrobler, any update on DI?

HendrikGrobler commented 6 years ago

Hi @feimosi, I've started on it, just had a busy last few days. Will see if I can't finish it tonight.

feimosi commented 6 years ago

No problem, just wanted to make sure.

feimosi commented 6 years ago

Most of the sections already have Vue examples, so I'm closing the issue. Thank you guys! Feel free to complete the left TODOs if you have time :)