polymer-dart / polymerize

Other
29 stars 3 forks source link

How do you programmatically create an element? #3

Closed ErikGrimes closed 7 years ago

ErikGrimes commented 7 years ago

If the elements are all abstract, how do you create one programmatically?

dam0vm3nt commented 7 years ago

This one is easy : you create it using the DOM APi : for instance document.createElement('my-tag') as MyTag.