forked from carloscarcamo/ng-book-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinterpolatingString.html
More file actions
28 lines (25 loc) · 835 Bytes
/
interpolatingString.html
File metadata and controls
28 lines (25 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!doctype html>
<html lang="en" ng-app="myApp">
<head>
<meta charset="UTF-8">
<title>Interpolating a string | ng-book</title>
<script type="text/javascript" src="bower_components/angular/angular.min.js"></script>
</head>
<body>
<!--<div ng-app="myApp">
<div ng-controller="MyController">
<input type="email" ng-model="to" placeholder="Recipient">
<textarea name="" id="" cols="30" rows="10" ng-model="emailBody"></textarea>
<pre>{{previeText}}</pre>
</div>
</div>-->
<div id="emailEditor" ng-controller="MyController">
<input ng-model="to"type="email" placeholder="Recipient"/>
<textarea ng-model="emailBody" name="" cols="30" rows="10" ></textarea>
<div id="emailPreview">
<pre>__previewText__</pre>
</div>
</div>
<script type="text/javascript" src="js/interpolation.js"></script>
</body>
</html>