cayblood
cayblood

Reputation: 1876

How to include external HTML in polymer elemets

Let's say I have a custom polymer element that is starting to get big. I want to be able to break up the element's template into smaller chunks, move these chunks to other html files and include these chunks in the main template file. Is this possible? Is it a good idea? Is there a convenient way of doing it?

Upvotes: 1

Views: 528

Answers (1)

jimi dough10
jimi dough10

Reputation: 2016

just make more custom elements and include those html files as normal. you can nest custom elements forever.

Upvotes: 1

Related Questions