4

I am trying to add a dynamic piece to my script tags url and I am getting "moudule unavailable" error

What I am ultimately looking for us something like this

<script ng-src="js/angular/{{anotherfolder}}/filters.js"></script>

I get the error even if I just do this

<script ng-src="js/angular/filters.js"></script> Basically it doesn't seem to like the ng-src directive

the non-dynamic way <script src="js/angular/filters.js"></script> works so I am reasonably sure that the problem is not the filters.js file

americanslon
  • 4,048
  • 4
  • 32
  • 57

1 Answers1

-3

Try including the whole path concatenation within the angular binding like this:

<script ng-src="{{'js/angular/' + anotherfolder + '/filters.js'}}"></script>