Within the same directory of my application deployed on IIS, there are 4 files:
- home.html
- Angular.js
- data.txt
- web.config (Automatically generated by IIS for default document)
I am looking to display the content of 'data.txt' on 'home.html'. You can see the code running at [Plunker][1]
The 'home.html' file contains the following code:
<!DOCTYPE html>
<html>
<head>
<title>nitin</title>
<script src="angular.js" type="text/javascript"></script>
<script type="text/javascript">
var nameSpace = angular.module("app", []);
nameSpace.controller("GuitarFunction", function ($scope) {});
</script>
</head>
<body ng-app="app">
<div ng-controller="GuitarFunction">
<ng-include src="'data.txt'">
</ng-include>
</div>
</body>
</html>