this is the error i m getting.This question is asked many time. But the following code runs well in online compiler but not in my local system even the system is connected to internet then also it shows angular is not defined
angular.module('myApp',[]).controller('myCtrl',function($scope) {
$scope.firstName = "John";
$scope.lastName = "Doe";
});
<html>
<body>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.7/angular.min.js"></script>
<div ng-app="myApp" ng-controller="myCtrl">
First Name: <input type="text" ng-model="firstName"/><br>
Last Name: <input type="text" ng-model="lastName"/><br>
<br>
Full Name: {{firstName + " " + lastName}}
</div>
</body>
</html>