3 ms·
On initial page load I usually put json in a global javascript variable and retrieve it in Angular. Maybe you can do something cleaner with module.value() ?
by conradfr 13y ago
On initial page load I usually put json in a global javascript variable and retrieve it in Angular.
Maybe you can do something cleaner with module.value() ?
- goblin89 13y ago> Maybe you can do something cleaner with module.value() ? I do a simple thing like that for certain settings[0]. I imagine this could easily be done for bootstrapped model data as well. [0] https://gist.github.com/strogonoff/6159373 https://gist.github.com/strogonoff/6159373