Is there any way to use javascript in ionic 3

#1

i have created a project with ionic 3
and i want to add some javascript code in one of my html page called. about.html.

i have added the bellow javascript code but it’s not working

here is my javascript code

 <script type="text/javascript"> app="www.cricwaves.com"; mo='ExtNotf'; nt="8"; mats =''; tor =''; Width='292px'; Height='170px'; wi ='w'; co ='ExtNotf'; ad="1"; </script><script type="text/javascript" src="http://www.cricwaves.com/cricket/widgets/script/scoreWidgets.js"></script>
#2

Add your script link in index.html file in after codova.js

<!-- cordova.js required for cordova apps -->
  <script src="cordova.js"></script>
//Here your script
  <script src=" script path here"></script>
1 Like
#3

but it’s not woorking

here is my code

 <script type="text/javascript"> app="www.cricwaves.com"; mo='ExtNotf'; nt="8"; mats =''; tor =''; Width='292px'; Height='170px'; wi ='w'; co ='ExtNotf'; ad="1"; </script><script type="text/javascript" src="http://www.cricwaves.com/cricket/widgets/script/scoreWidgets.js"></script>

sorry i am new in ionic

#4

check this ans: https://stackoverflow.com/a/44134679/9088454