Strictly Programming

Polymer: a basic page

Posted in Polymer by sqllyw on 08/22/2016

Here is a simple Polymer based page, just create an index.html, and copy and paste the following code into it:

<!doctype html>



    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <!-- import latest release version of all components from polygit -->
    <base href="">
    <script src="webcomponentsjs/webcomponents-lite.js"></script>
    <link href="polymer/polymer.html" rel="import">





<dom-module id="app-view">
            :host {
                display: block;
        <p>Hello {{prop1}}</p>

            is: 'app-view',
            properties: {
                prop1: {
                    type: String,
                    value: 'Polymer',


serve it from any web server, example, from python:

python -m SimpleHTTPServer

then access following url in Chrome browser:
Try it in jsFiddle

Tagged with:

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: