I have a simple .blade.php view for a Laravel application, I'm trying to include a JS file, which is in /public/js directory in my project.
<!DOCTYPE HTML>
<script src="http://ift.tt/1JDUibz"></script>
<script type="text/javascript" src=""></script>
<html>
<body>
<div id="chart-1" style="height: 300px"></div>
<script>
new Chartkick.LineChart("chart-1", {"2013-02-10 00:00:00 -0800": 11, "2013-02-11 00:00:00 -0800": 6})
</script>
</body>
</html>
It looks like this, but when I try to display this I get
test:8 Uncaught ReferenceError: Chartkick is not defined
at test:8
In Chrome developer console, the JS file doesn't seems to be properly included in my project. Why?
Thanks for helping.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2s6I4a5
via IFTTT
Aucun commentaire:
Enregistrer un commentaire