Angular application runs via bootstrap:
<script> angular.bootstrap(document.getElementById('div_app'), ['demo']); </script> The controller code must be in a separate js file.
app.controller('MainCtrl', ['$scope', 'val', function($scope, val) { $scope.new = 'New ' + val; }]); You need to set the value for the application in the script container inside the html. Sort of:
var app = angular.module('demo', []).value("val", "World");