<script type="text/javascript">
angular.module("myapp") 
    .constant("WAIT", @ViewBag.WAIT)
    .constant("NAME", @ViewBag.NAME)
;
</script>

<script type="text/javascript">
angular.module("myapp") 
    .constant("WAIT", @ViewBag.WAIT)
    .constant("NAME", '@ViewBag.NAME')
;
</script>

Fix string injection of NAME from ViewBag to ng.constant
Fix string injection of NAME from ViewBag to ng.constant