Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<body>
<div ng-app="myApp" ng-controller="my1">
<p>text : {{text}}</p>
<p>status : {{statuscode}}</p>
<p>status text : {{statustext}}</p>
</div>
<script>
var app = angular.module('myApp', []);
app.controller('my1', function($scope, $http) {
$http.get("TextFile1.txt")
.then(function(response) {
$scope.text = response.data;
$scope.statuscode = response.status;
$scope.statustext = response.statusText;
},
function(response) {
$scope.text = "Failure!";
$scope.statuscode = response.status;
$scope.statustext = response.statusText;
});
});
</script>
</body>
</html> 
The most helpful ANGULARJS solutions
How to get client ip address using angularjs ?ANGULARJS Click to see more ... 19.3K 2.8K