janmarthedal / math-tex

A custom element for typesetting math written in (La)TeX
http://janmarthedal.github.io/math-tex/
10 stars 0 forks source link

Automatically update math when inner text changes #2

Open lastmjs opened 8 years ago

lastmjs commented 8 years ago

For my use case I need to update the math inside of the element dynamically. It gets set once initially, but then when the user clicks a button the math needs to reload with different text. It would be so nice if this element supported re-rendering when the text changes, then I could just use data-binding in Polymer and update a variable and have the math re-rendered. Is this possible right now?

lastmjs commented 8 years ago

Sorry, I only checked by changing the source from the browser. I believe this is supported already, I just cloned the repo and tried it out. Do you know if automatic updating works with Polymer data-binding? I don't think there will be any problems, and if so we should probably just close this issue...haha...ha