Skip to content

Instantly share code, notes, and snippets.

@javaeeeee
Created December 16, 2016 22:38
Show Gist options
  • Select an option

  • Save javaeeeee/8b42a0c860dc55c105783aa1b4dbc702 to your computer and use it in GitHub Desktop.

Select an option

Save javaeeeee/8b42a0c860dc55c105783aa1b4dbc702 to your computer and use it in GitHub Desktop.
An HTML file with module and controller added
<!DOCTYPE html>
<html lang="en">
<head>
<title>Hello World AngularJS application</title>
<script data-require="[email protected]" data-semver="1.6.0" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.0/angular.js"></script>
<script src="script.js"></script>
</head>
<body ng-app='app'>
<h1>Hello World AngularJS application</h1>
<section ng-controller="HelloController">
<h4>AngularJS Greeting</h4>
<label for="name">Type your name here:</label>
<input id=name type="text" ng-model="myModel">
<p>Hello {{myModel}}!</p>
</section>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment