In an ASP Page I have a AngularJS modules directly applied. The ASP-page get from the server a parameter, that is to be used in the module. Like this (foo is the parameter):
<script>
var myApp = angular.module('myApp', []);
myApp.controller('myController', function($scope ) {
$scope.foo = @Model.foo;
...
Now I would like to outsource the module in a separate JS file. How can I inject the parameter into the module then?