dimanche 3 juin 2018

Custom jquery function not working in view : Laravel

I'm trying to use a progressbar plugin, I've installed it using npm ie: npm install progressbar.js & required it in my app.js file.

I have also defined my custom function - generate_circle() in my app.js file.

When i call my custom function generate_circle() in the view inside a script tag i get the error

Uncaught ReferenceError: generate_circle is not defined

in my console.The plugin files are loaded correctly because I can see the plugin code in the app.js file.so that is not the issue.

Can anybody help me with this?

screenshot of my app.js file

enter image description here

screenshot of my view

enter image description here



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire