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

"Using Polymer Elements in Angular CLI Webpack" doc need an update for last angular-cli version #82

Open
sylphir opened this issue Sep 9, 2016 · 4 comments

Comments

@sylphir
Copy link

sylphir commented Sep 9, 2016

I tried to apply the "Using Polymer Elements in Angular CLI Webpack" tuto,
on 1.0.0-beta.11-webpack.8 without success on Firefox.

But the trick is here : angular/angular-cli#1747
The polyfill
<script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
has to be call in global in angular-cli.json and not in index.html anymore

@Chabane
Copy link

Chabane commented Sep 9, 2016

See #57

@sylphir
Copy link
Author

sylphir commented Sep 9, 2016

First of all thank you for your answer and sorry if my english is bad.
As i said in my comment i followed the "Using Polymer Elements in Angular CLI Webpack" tuto that i found in #57 but it doesn't work anymore on the last angular-cli version.

I wrote the solution in the previous comment.

@Chabane
Copy link

Chabane commented Sep 9, 2016

Understood. What for elements.html ? It's an import of html.

@sylphir
Copy link
Author

sylphir commented Sep 9, 2016

Actually, the issue with Firefox is that the polyfill is not loaded, and turn to a Polymer.Settings is undefined
This one : angular/angular-cli#1747 is about javascript libraries which need to be added to the global scope, and loaded as if they were in a script tag.
This trick make the polyfill load successfully
There is no other issues with html import.

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

No branches or pull requests

2 participants