Created
October 18, 2013 19:04
-
-
Save dfreedm/7046472 to your computer and use it in GitHub Desktop.
Sub Imports, ShadowDOM and IE 11: Oh My!
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>SubImport</title> | |
| <script src="polymer/polymer/polymer.js"></script> | |
| <link rel="import" href="x-bar.html"> | |
| </head> | |
| <body> | |
| <x-bar></x-bar> | |
| </body> | |
| </html> |
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="x-foo.html"> | |
| <polymer-element name="x-bar" extends="x-foo" attributes=""> | |
| <template> | |
| Great Big <shadow> | |
| </template> | |
| <script> | |
| Polymer('x-bar'); | |
| </script> | |
| </polymer-element> |
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
| <polymer-element name="x-foo" attributes=""> | |
| <template> | |
| Hello World | |
| </template> | |
| <script> | |
| Polymer('x-foo'); | |
| </script> | |
| </polymer-element> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment