I wanted to start to port my Polymer 1.0 application to Polymer 2.0 (preview).
I used <template is="dom-bind"> in my index.html to support data bindings. Is this also possible with Polymer 2? I tried <dom-bind> as a component, but it did not work.
In Polymer 2.0, make sure to wrap the
<template>inside<dom-bind>as described in the upgrade guide. It's also important to includepolymer.html, which importsdom-bind.html(instead of onlypolymer-legacy.html).Polymer 1.0:
Polymer 2.0: