i m beginner plz can you help me that why content on welcome.html is not 
beign shown
what should i do please rply fast
{i am using notepad++ as editor}

<!DOCTYPE html>

<html>
<script 
src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/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>
</html>



welcome.html

<html><head>

</head>
<body>

<h1 style="color:green">Bievenue! Angular JS du Page</h1>

</body>
</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.

Reply via email to