I'm doing my first proper project with VueJS, enhancing a traditional web app with components. I picked Vue because a year ago when I first started experimenting it seemed much easier than React to enhance parts of existing pages with. That story has changed since, and the React docs are beter about how to use components within pages.
I echo the issues with the attribute syntax. I found marshalling data from the server into components to be painful. I ended up with the following:
<activity-form action="/admin/applications/edit/1001/ajax-activity"
:staff-member="1"
:staff-member-options="[{"value":"1","text":"First Person"},{"value":"2","text":"Second Personki"},{"value":"3","text":"Third Person"}]"
:activity-type-options="[{"value":"note","text":"Note"},{"value":"reminder","text":"Reminder"}]"
:is-super-administrator="true"
@new-activity-log-entry="addActivityLogEntry"
>
</activity-form>
For enhancing existing server-rendered apps, is there a better story for passing data into components?