You are on page 1of 1

<!

DOCTYPE html>
<html>
<script
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script
>
<body>
<div ng-app="myApp" ng-controller="myCtrl">
Status:{{myWelcome}}

</div>
<p>Please Turn On Your Internet to test this Example</p>
<script>
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope, $http) {
$http.get("http://www.google.com")
.then(function(response) {
$scope.myWelcome = response.status;
});
});
</script>

</body>
</html>

You might also like