-
Notifications
You must be signed in to change notification settings - Fork 5
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
Two-way binding does not work with Polymer and Webpack. #18
Comments
It looks like Webpack itself doesn't support Polymer yet, based on
|
Hi We're using polymer and webpackand it's working quite fine. The difference is that we're vulcanizing all required polymer widgets in a single bundle (polymer.html) that is firstly added in index.html, just after the import of webcomponentsjs. This way, we don't need to add any link in aurelia templates as all of them are already loaded by the bundle |
@dpinart thanks! I'll add something to the README |
Hello, @HIRANO-Satoshi Today, I was having the same problem. In my case, to solve, I used bindable. I didn't want to import all the polymers in my index. And what i did to solve was.. In my view-model import
|
This may deserve its own thread, but I'm hoping one of you can help me with this. On the documentation, I see that it asks for the user to use JSPM to install aurelia-polymer. I've instead, used npm to install aurelia-polymer. I figured out that you're supposed to include "aurelia-polymer" as a resource in the package.json file
But now I'm getting errors loading the module aurelia-polymer/au-custom-attribute-select :/ |
I'd guess that's because aurelia-polymer doesn't have the aurelia build configuration in its |
@unkani I had a similar problem and it seem to work with adding au polymer to the bundle dependencies in the aurelia.json with these config
|
@RoguePanda, thank you for the great plugin.
Two-way binding does not work with Webpack. The following code acts like one-way binding.
When we use Polymer with webpack, we have to use aurelia-webpack-plugin which is a template loader for webpack. We don't use aurelia-html-import-template-loader.
In that case the following code produces an error.
We needed to place all link tags inside the template tag. @EisenbergEffect wrote that I'm not sure how it worked with jspm. There's a strict guard in the codebase to ensure that html is wrapped with a template..
Could you fix code for bindings?
There is a quick workaround. As I put all loadings of the paper-input and tags requiring two-way binding in index.html, the two-way binding works.
Here is an example: skeleton-navigation/skeleton-webpack.
The text was updated successfully, but these errors were encountered: