I update my file
elements/hello-world.html to
<link rel="import"
href="http://localhost:8000/bower_components/polymer/polymer.html" />
<dom-element id="hello-world">
<template>
<p>I'm a DOM element. This is my local DOM!</p>
</template>
<script>
Polymer({
is: "hello-world"
});
</script>
</dom-element>
Unfortunately the problem didn't resolve.
W dniu niedziela, 11 października 2015 05:08:29 UTC-7 użytkownik Rubén Díaz
Martínez napisał:
>
> Hi. First of all I think you are using an old version of polymer, since in
> the examples from polymer-project.org it says that you define your
> elements with dom-element instead of polymer-element
>
> El sábado, 10 de octubre de 2015, 23:58:04 (UTC+1), [email protected]
> escribió:
>>
>> Hi
>>
>> I started lerning polymer, and I wrote first example app.
>>
>> index.html
>> <!DOCTYPE html>
>> <html>
>> <head>
>> <script type="text/javascript"
>> src="bower_components/webcomponentsjs/webcomponents.js"></script>
>> <link rel="import" href="http://localhost:8000/elements/hello-world.html"
>> />
>> </head>
>> <body>
>> <hello-world></hello-world>
>> </body>
>> </html>
>>
>> elements/hello-world.html
>> <link rel="import" href="
>> http://localhost:8000/bower_components/polymer/polymer.html" />
>>
>> <polymer-element name="hello-world" noscript>
>> <template>
>> <h1>Hello World</h1>
>> </template>
>> </polymer-element>
>>
>> Console show problem:
>> webcomponents.js:1 Uncaught SyntaxError: Unexpected token <
>>
>> I don't know where is problem.
>>
>
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/polymer-dev/df64333c-aa85-4ed0-91f3-2cc193e9f0ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.