I forgot add that I run it on node.js. When my paths was relative the 
problem generated repeatedly. I capture the photo.

<https://lh3.googleusercontent.com/-8M7NlJny8MM/Vhq6Rd_KPoI/AAAAAAAADII/psEc-Ks1iJI/s1600/Capture.PNG>

When my paths are direct, the problem generated only twice. It wasn't 
dependent of dom-element, or dom-model. 

W dniu niedziela, 11 października 2015 09:23:05 UTC-7 użytkownik Rubén Díaz 
Martínez napisał:
>
> Sorry, my fault. The name of the tag should be dom-module. I tried it 
> myself and it works.
>
> BTW, you don't need to specify the href and src with localhost:8080, just 
> put the relative path :)
>
> El domingo, 11 de octubre de 2015, 14:24:53 (UTC+1), [email protected] 
> escribió:
>>
>> 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/9c2dc78b-f128-41f2-8369-f5117b38933a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to