First, you should make welcome.html contain only the h1 tag, not
html/head/body tags. And you should handle if $http fails:
$http.get("welcome.html")
.then(function(response) {
$scope.myWelcome = response.data;
}, function(response) {
alert("Error trying to get welcome.html!");
});
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.