2
我是聚合物项目的新手,我安装了聚合物2.0入门套件,一切工作正常,除铁图标。当我运行项目时它不显示图标。聚合物2.0:在初学者套件中不起作用的铁图标
<!-- Load the Polymer.Element base class -->
<link rel="import" href="../bower_components/polymer/polymer-element.html">
<script src="../bower_components/webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="../bower_components/iron-icon/iron-icon.html">
<link rel="import" href="../bower_components/iron-iconset-svg/iron-iconset-svg.html">
<dom-module id="my-iconsset-view">
<!-- Defines the element's style and local DOM -->
<template>
<style>
:host {
display: block;
padding: 16px;
}
</style>
<h1>My Iconsc</h1>
<iron-icon icon="icon:menu"></iron-icon>
<iron-icon icon="input"></iron-icon>
</template>
<script>
// Your new element extends the Polymer.Element base class
class MyIconssetView extends Polymer.Element {
static get is() { return 'my-iconsset-view'; }
}
//Now, register your new custom element so the browser can use it
customElements.define(MyIconssetView.is, MyIconssetView);
</script>
</dom-module>
我从铁 - 图标铁图标改变的文件夹和HTML文件,并导入 <链路的rel =“导入的” href =“../ bower_components /铁 - 图标/铁icons.html”>并做出更改 但仍无效,请帮助 –
iRav
@iRav您是否安装过铁烙铁? – Ofisora
感谢它在安装铁图标后的工作 – iRav