Simon Hunt | 335b247 | 2014-12-08 16:52:18 -0800 | [diff] [blame] | 1 | <!DOCTYPE html> |
2 | <html ng-app="notesApp"> | ||||
3 | <head> | ||||
4 | <title>Notes App</title> | ||||
5 | <script src="../../tp/angular.js"></script> | ||||
6 | </head> | ||||
7 | <body ng-controller="MainCtrl as ctrl"> | ||||
8 | {{ctrl.helloMsg}} AngularJS. | ||||
9 | <br/> | ||||
10 | {{ctrl.goodbyeMsg}} AngularJS | ||||
11 | |||||
12 | <script type="text/javascript"> | ||||
13 | angular.module('notesApp', []) | ||||
14 | .controller('MainCtrl', [function () { | ||||
15 | this.helloMsg = 'Hello '; | ||||
16 | var goodbyeMsg = 'Goodbye '; | ||||
17 | }]); | ||||
18 | </script> | ||||
19 | |||||
20 | </body> | ||||
21 | </html> |