0

how do i send to javascript files in variables?

I don't want to use it this way

@section("js")
<script>
...
</script>
@endsection

i want it this way

@section("js")
<script src="home.js"></script>
@endsection

Javascript file:

var id = {{ $variable }}
insight web
  • 11
  • 1
  • 2
  • Does this answer your question? [Passing parameters to JavaScript files](https://stackoverflow.com/questions/2190801/passing-parameters-to-javascript-files) – flakerimi Aug 03 '21 at 02:05

0 Answers0