platosha / angular-polymer

Angular 2 support for Polymer elements
https://www.npmjs.com/package/angular-polymer
Apache License 2.0
220 stars 44 forks source link

How to reference images #112

Closed BorntraegerMarc closed 7 years ago

BorntraegerMarc commented 7 years ago

Hi guys

I've posted this question: https://stackoverflow.com/questions/41016503/angular2-vaadin-angular2-polymer-how-to-reference-images

Because I was not sure, if I should submit this here... I'm quite the noobie with webpack. Would be incredible useful if somebody could solve my problem :)

Cheers, Marc

tomivirkki commented 7 years ago

Hello @BorntraegerMarc

The syntax in your example at least looks ok <paper-card image="img/home.jpg"> So as long as the <paper-card> element gets properly upgraded this should work as expected. Does your import of 'paper-input.html' work fine?

BorntraegerMarc commented 7 years ago

Thanks for the answer @tomivirkki . Yeah I'm 100% sure that the import works.

Don't you think there is rather an error with webpack? Because I can't find the file, when I'm searching for it in the dev tools in the browser?

platosha commented 7 years ago

@BorntraegerMarc I am pretty sure this is not related with Angular or our library, closing this. Please see my hints for your webpack setup on SO.

BorntraegerMarc commented 7 years ago

You are correct @platosha -> this has nothing to do with Angular or vaadin lib. But I was not sure, where to start searching... But thank you very much for your answer. I'll continue the discussion over there. Would be glad, if you could answer to my comment :)