Skip to content

Instantly share code, notes, and snippets.

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

  • Save javaeeeee/3523ea3fa0b1647e047dea0ae6cd0234 to your computer and use it in GitHub Desktop.

Select an option

Save javaeeeee/3523ea3fa0b1647e047dea0ae6cd0234 to your computer and use it in GitHub Desktop.
A snippet of HTML code with AngularJS added using script tag and ng-model directive is used
<!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>
</head>
<body ng-app>
<h1>Hello World AngularJS application</h1>
<section>
<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