Last active
August 29, 2015 14:06
-
-
Save IntranetFactory/dc42b74627d826bbb84b to your computer and use it in GitHub Desktop.
designer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <link rel="import" href="../polymer/polymer.html"> | |
| <polymer-element name="greeting-tag"> | |
| <template> | |
| <style> | |
| </style> | |
| <ul> | |
| <!-- inner template --> | |
| <template repeat="{{s in salutations}}"> | |
| <li>{{s.what}}: <input type="text" value="{{s.who}}"></li> | |
| <template if="true">xxxx</template> | |
| </template> | |
| </ul> | |
| </template> | |
| <script> | |
| Polymer({ | |
| ready: function () { | |
| // populate the element’s data model | |
| // (the salutations array) | |
| this.salutations = [ | |
| {what: 'Hello', who: 'World'}, | |
| {what: 'GoodBye', who: 'DOM APIs'}, | |
| {what: 'Hello', who: 'Declarative'}, | |
| {what: 'GoodBye', who: 'Imperative'} | |
| ]; | |
| } | |
| }); | |
| </script> | |
| </polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment