Reputation: 4132
I am using Yeoman to scaffold my Polymer project. I upgraded Polymer and everything else to 0.8-preview, and the application stopped working.
What changes in the application should I do to make 0.8-preview working?
Upvotes: 2
Views: 580
Reputation: 56
Below are my notes on the conversion process from Polymer 0.5 to 0.8.
https://www.polymer-project.org/0.8/docs/migration.html
<polymer-element name="x-foo" layout horizontal wrap>
<link rel="import" href="../layout/layout.html">
to top with other importshostAttributes: {class: "layout horizontal wrap"}
to Polymer({<link rel="import" type="css" href="my-awesome-button.css">
from <template> to <dom-module>
<style></style>
from <template>
to <dom-module>
<div>First: {{first}}</div>
TO <span>{{first}}</span><br>
on-click="{{handleClick}}"
to on-click="handleClick"
properties: { }
<style></style>
from <template>
to <dom-module>
(as noted above)
http://chuckh.github.io/road-to-polymer/compare-code.html?el=paper-button
Upvotes: 4
Reputation: 121010
First of all, you should not upgrade the 3rd party code to preview versions without thoughtful examination of changelog. Generally.
In 0.8
, which is claimed to be the 1.0
-release candidate, there has changed virtually speaking everything. E.g. polymer-element
is gone in favour of dom-module
. Etc.
The answer to your question is: you should rollback to 0.5 unless you really want to re-write your code from the scratch.
Upvotes: 0
Reputation: 1939
There is a good write up between 0.5 and 0.8 - maybe that helps: https://divshot.com/blog/web-components/polymer-0-8-sneak-peek/
Upvotes: 0