Answer the question
In order to leave comments, you need to log in
How to configure angular application from backend?
Nothing smarter than passing parameters to a hidden input came to my mind.
Answer the question
In order to leave comments, you need to log in
As an option.
<script>
// Инжектится везде, только для чтения
angular.module('yourapp').constant('myconst', {foo: 'bar'});
// Недоступно во время конфигурации, можно инжектить во все остальные места
angular.module('yourapp').value('myvalue', ['foo', 'bar']);
</script>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question