Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working with Nativescript-Vue #29

Open
ozcancelik opened this issue Aug 9, 2019 · 1 comment
Open

Working with Nativescript-Vue #29

ozcancelik opened this issue Aug 9, 2019 · 1 comment

Comments

@ozcancelik
Copy link

I use Nativescript 6.0.1 and using Nativescript-Vue. Using this alert method:
https://nativescript-vue.org/en/docs/elements/dialogs/alert/

I want to change it with this cool dialog.

I tried code as they said but i get; 'types' can only be used in a .ts file.Vetur(8010) error. I guess because of my files are not .ts they are .vue.

image

How can I use this plugin in Nativescript-Vue. Any sample codes will helps a lot.

@shiv19
Copy link
Owner

shiv19 commented Aug 13, 2019

Just remove the types, you don't need to specify types in your vue file.
change let options: DialogOptions to let options
and remove DialogOptions from the import statement :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants