Hello
I'm starting with Polymer 1.0 and I'm trying to create my first element and load into an html page. I'm using Chrome Dev Editor, the project was created correctly because I could load all the example. After that I eliminate all the example code and create a:
- Folder "elements" into the project
"hello-world.html" with the following code:
<link rel="import" href="../bower_components/polymer/polymer.html"> <polymer-element name="hello-world" noscript> <template> <h1>Hello World</h1> </template>Updated the code in the "index.html" file
<!doctype html> <html> <head> <title>PolyExample</title> <script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script> <link rel="import" href="elements/hello-world.html"> <link rel="stylesheet" href="styles.css"> </head> <body> <h1>Test Polymer</h1> <hello-world></hello-world> </body> </html>
I will appreciate any help about this
Thanks in advance