[SOLVED] Error using this.$f7

when i try use this.$f7.dialog.alert, show this error
Uncaught (in promise) TypeError: Cannot read property ‘alert’ of undefined

this is my code
https://codeshare.io/G6zvrg

If i use import Framework7 from ‘framework7’; dont works but if i use import Framework7 from ‘framework7/framework7.esm.bundle.js’; works why?

Here you are importing all f7 components
framework7/framework7.esm.bundle.js

Read here to understand.

https://framework7.io/docs/package.html#components

1 Like