I have this page:
<!DOCTYPE html>
<html>
<body ng-app='vb'>
<div id="loadedContent" ng-controller="ExampleController"></div>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript">
var app = angular.module('vb', ['ngRoute']);
angular.module('vb', []).controller('ExampleController', ['$scope', function($scope) {}]);
jQuery(function () {
jQuery.get('vb.txt', {
now: jQuery.now()
}, function (data) {
$("#loadedContent").append(data);
});
});
</script>
</body>
</html>
What the page does is to load a text file which contains: {{10*10}} and places it in the loadedContent div tag but the Angular JS code is not compiled. I am very new to Angular JS. I have read on the documentation and tried out ng-bind, ng-include, compile directive but none seems to work. What is the way to go about this?