Use a polymer paper element in an angular 2 project

I am really trying to use Angular 2 with Angular cli and I have a problem with polymer paper component components.

Actually, I bind this inside the tag <head>:

<link rel="import" href="../bower_components/paper-header-panel/paper-header-panel.html"/>

But the component does not load when I try to do this:

<paper-header-panel class="blue">
    <div class="paper-header">standard</div>
    <div class="content"></div>
  </paper-header-panel>

Now it seems that I can not find the package, the browser is trying to request:

http://127.0.0.1:4200/bower_components/paper-header-panel/paper-header-panel.html

But nothing was found.

How can I make it work?

+4
source share

Source: https://habr.com/ru/post/1627444/


All Articles