Closed
Description
Publish a property by listing it in the attributes
fails
Publish properties by listing it in the attributes
in a <polymer-element>
currently throws TypeError: undefined is not a function
. I'm using polymer 0.2.3 in chrome 34 under Ubuntu 13. Also fails in firefox 28. The following example taken from official documentation fails:
<!DOCTYPE html>
<html>
<head>
<script src="platform.js"></script>
<link rel="import" href="/components/polymer/polymer.html">
</head>
<body>
<polymer-element name="color-picker" attributes="owner color">
<template>
This is a <strong>{{owner}}</strong>'s color-picker.
He likes the color <b style="color: {{color}}">{{color}}</b>.
</template>
<script>
Polymer('color-picker', {
// These default values are overridden
// by the user's attribute values.
color: "red",
owner: "Daniel"
});
</script>
</polymer-element>
<color-picker owner="Scott" color="blue"></color-picker>
</body>
</html>
Metadata
Assignees
Labels
No labels