Answer the question
In order to leave comments, you need to log in
How to pass variable from template to Angular $rootScope?
Good afternoon!
There was a need to pass a variable from the template to Angular's $rootScope
<script>
var screens = "[
'scr1',
'scr2',
'scr3'
]"
</script>
Answer the question
In order to leave comments, you need to log in
I would like to minimize the number of requests to the server
angular.module('app', [зависимости]); // это ты пишешь сам
// А это должен генерировать сам генератор:
angular.module('app').constant('screens', {
а сюда вставлять сгенерированные данные в каком-то формате
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question