Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

refactor mobiledoc to get rid of controller #11

Closed
alidcast opened this issue Sep 30, 2017 · 2 comments
Closed

refactor mobiledoc to get rid of controller #11

alidcast opened this issue Sep 30, 2017 · 2 comments

Comments

@alidcast
Copy link
Owner

alidcast commented Sep 30, 2017

Ideally a package will only consist of an Editor and its nested, complementary components.

@alidcast
Copy link
Owner Author

Since button component is functional, and functional components are rendered before slots, it can't receive provided props from the editor, only from root instance (see vuejs/vue#5837). Thus, we need a shared vm/controller that both editor and its nested components share.

@alidcast
Copy link
Owner Author

alidcast commented Sep 30, 2017

update: separate controller seems to be necessary since runtime build does not compile templates, which means that you can't use it as both a template and as a controller (and vue files are too limited)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant