M
M
Maxim Ivanov2016-07-13 16:19:55
Angular
Maxim Ivanov, 2016-07-13 16:19:55

How to output repeating html link, script elements in angular?

I would like to quickly display scripts and styles from an array, but how can this be done?
want instead

<!-- Controllers -->
  <script src="js/controllers/n-1.js"></script>
  <script src="js/controllers/n-2.js"></script>
  ..
  <script src="js/controllers/n-n.js"></script>

write like this
<!-- Controllers -->
  <script ng-src="{массив скриптов}"></script>

Can you do something like this in Angular?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Wolf, 2016-07-13
@splincodewd

use require.js for example?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question