Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds class and style binding to functional components #43

Conversation

henriqemalheiros
Copy link
Contributor

As Evan explained in vuejs/vue-loader#1014, "functional components do not have the class/style merging behavior by default", so we should "fully [control] the classes by binding context.data.class and context.data.staticClass [ourselves]".

@damianstasik
Copy link
Owner

Combining regular expressions and HTML is not safe, it can end up really badly. I released 0.9.0 which contains the behavior you mentioned using API provided by vue-template-compiler.

@henriqemalheiros henriqemalheiros deleted the functional-component-class-and-style branch September 6, 2018 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants