I am building a MEAN application, one issue I have is that I want to give my users some sort of control over the routes used. So I want my server side code (expressJS) to set some variables in my client side code.
Essentially I want to be able to generate my client side JS from my server side code.
for example, in PHP I would probably do something along the lines of
<?php
echo <script>
echo var test = $test
echo </script>
?>
I am not talking about binding, the variables only need to be set at the initial application load.
What would be the best way to accomplish this kind of integration with MEAN, in the cleanest way possible...