[V2] How can i use functions inside a <script> tag?

Hi guys,

I’m learning javascript and testing framework7 with the docs examples, and trying to use functions inside a tag but it’s not working, ex:

javascript inside a

thanks in advance

In loaded pages the functions wouldn’t work. You need to pop them into an eval() function. At least it was the case for V1. Give it a go and let us know

Hi, plague69

thanks for you answer, but there is another way to use javascript inside a single page?