(no title)
count_zero | 9 years ago
It's no ideal, as the initial DOM render isn't fully populated, but it's much faster than waiting for another round trip to the server to populate the view.
Here's an example sketch using vue.js (data is in #game-data div): https://game-collector-staging.herokuapp.com/
bigmanwalter|9 years ago
<script> var models = {{=models}}; </script>
And just like that, I have my data accessible as a global variable.