Search code examples
polymer

Polymer installation


I'm a total noob at Polymer, I just installed it. However all I see is a blank page. What am I doing wrong? Thank you!

What I did: bower init, bower install --save Polymer/polymer#^1.2.0, bower update, python -m http.server,

I created these 2 files:

index.html

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script src="bower_components/webcomponentsjs/webcomponents-lite.js">
</script>
<link rel="import" href="elements/hello­polymer.html">
</head>
<body>
<hello­polymer></hello­polymer>
</body>
</html>

elements/hello-polymer.html

<meta charset="utf-8">
<link rel="import" href="../bower_components/polymer/polymer.html">
<dom­module id="hello­polymer">
    <template>
    <h1>Hello Polymer</h1>
    <p class=”ondertitel”>My first polymer element</p>
    </template>
    <script>
    Polymer({
    is: "hello­polymer"
    });
    </script>
</dom­module>

Solution

  • Hello if you want to start with polymer then you should do this

    (open cmd in your folder) and run this

    polymer init and select polymer starter-kit

    polymer serve --open

    and then you should read this article on: this site.