App with Ionic + Polymer

npm install -g cordova ionic
ionic start myApp blank
cd myApp
bower install --save Polymer/polymer#^0.5
bower update
mkdir -p www/elements/my-element
subl www/elements/my-element/my-element.html

<link rel="import" href="../../bower_components/polymer/polymer.html">

<polymer-element name="my-element" attributes=""> <template>

<span>Hello from <b>my-element</b>.

(function () {
// define element prototype here

subl www/index.html

<link rel="import" href="lib/polymer/polymer.html">
<script src="lib/webcomponentsjs/webcomponents.js"></script>
<link rel="import" href="elements/my-element/my-element.html">

ionic serve


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your 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 )

Google+ photo

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

Connecting to %s