How can i use javascritp in Ionic?
Can you be more specific?
Hi have to use EmaiJs or Smtpjs in Ionic … but i don’t know how to use it… an error occured when i try to run my app
Please provide us your code where we can see:
- what you already have tried
- what error message do you get
- information about your envrioment
In home.html i have a form where i call function => sendEmail()
this is the funciont in file home.ts : =>
and finally this is the Error =>
Ok then your JS Plugin isnt the problem. You are somehow calling your sendEmail wrong.
Can you please show the form where you call your function?
Ah I see your are calling it by click event.
Do you call it like this? because this is the ionic way of calling functions:
(click)="sendEmail()"
In vanilla JS you would do it like this:
onclick="sendEmail()"
onclick=“sendEmail()”
i imported javascript file in index.html
I solved i missed to write a thing.