<html>
<script src="../../ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>
<body>
<div ng-app="myApp" ng-controller="myCtrl">
<p>Today's welcome message is:</p>
<h1>{{myWelcome}}</h1>
</div>
<p>The $http service requests a page on the server, and the response is set as the value of the "myWelcome" variable.</p>
<script>
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope, $http) {
$http.get("welcome.html").then(function (response) {
$scope.myWelcome = response.data;
});
});
</script>
</body>
<!-- Mirrored from www.w3schools.com/angular/tryit.asp?filename=try_ng_services_http by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 13:32:30 GMT -->
</html>