I think you have to add an element to use script even without polymer - the
<script> element. 'Element'? 'Tag'? Hrm.
Anyway, with Polymer, you have to add *two* elements, a <link> element and
the actual polymer element you want. I wonder if you need to add the
polymer element to the body, or can you put script-only polymer elements in
the head?
It *is* somehow different though, isn't it...requires a change in thinking
which can be a bit painful. Using script only polymer elements *can* help
with binding though, which can simplify things.

Max.

On Tue Oct 28 2014 at 11:56:29 Jan Schreyer <[email protected]>
wrote:

> I am unsure if I get everything right, but I think this answer is only
> true when the developer is fully embracing the 'everything is an element'
> paradigm.
>
> Personally, I don't do that. While I really appreciate Polymer for its
> syntactic sugar on web-components, I just can't stand having to add an
> element to my markup when I want to use it only for script operations. It
> feels wrong to me.
>
> It would be fantastic if I could use HTML imports for each visual
> component (that might contain logic, if necessary) and require() to fetch a
> service function.
>
> 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/58da4fe4-caee-4119-b8d9-5e09651aebc9%40googlegroups.com
> <https://groups.google.com/d/msgid/polymer-dev/58da4fe4-caee-4119-b8d9-5e09651aebc9%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

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/CAMZCrPg%3Dehyvw_eYEP0vUX1bUMtcB0GEhV7D72ew_AgGGO%2Bxiw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to