I learning the $http service but I am not clear on this regarding the get(). below code doesn't execute demo2.htm. Please check and advise where i made the mistake.
var app = angular.module('myApp', []);
app.controller('urlCtrl', function($scope, $http) {
$http.get('demo2.htm').then(function(response) {
$scope.myWelcome = response.data;
});
});