<!DOCTYPE html>
<html ng-app="myApp">
<head>
	<meta charset="UTF-8">
	<title>Hello World AngularJS</title>
	<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular.min.js"></script>
	<script src="controller.js"></script>
</head>
<body ng-controller="myCtrl">
	<h2>Hello World AngularJS</h2>
	<input type="text" ng-model="myText">
	{{myResult()}} 
</body>
</html>
var app = angular.module('myApp', []);

app.controller('myCtrl', function($scope) {
  $scope.myText = "World";
  
  $scope.myResult = function () {
    return "Hello " + $scope.myText + "!";
  };
});