Skip to content

Instantly share code, notes, and snippets.

@rahulsahay19
Created July 10, 2018 05:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulsahay19/ab849fb1d5f570b016360c90645f967a to your computer and use it in GitHub Desktop.
Save rahulsahay19/ab849fb1d5f570b016360c90645f967a to your computer and use it in GitHub Desktop.
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Angular Elements Demo</title>
</head>
<body>
<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}}
<app-greeter></app-greeter>
</div>
<script src="ng-elements.js"></script>
<script src="angular.min.js"></script>
<script src="main-controller.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment