File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+ < head >
4+ < title > AngularJS Workshop · Data Binding</ title >
5+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6+ < link href ="/lib/bootstrap/css/bootstrap.css " rel ="stylesheet ">
7+ </ head >
8+ < body ng-app >
9+ < div class ="container ">
10+ < h1 class ="page-header "> AngularJS Workshop · Data Binding</ h1 >
11+
12+ < h2 > Two-way binding with < em > ng-model</ em > </ h2 >
13+
14+ < div class ="form-group ">
15+ < p > Hello {{ name }}</ p >
16+ < input type ="text " class ="form-control " ng-model ="name ">
17+ </ div >
18+
19+ < div class ="form-group ">
20+ < input type ="text " class ="form-control " ng-model ="alertClass ">
21+ </ div >
22+
23+ < p class ="alert alert-{{alertClass}} "> Check this out!</ p >
24+ </ div >
25+
26+ < script src ="/lib/angular/angular.js "> </ script >
27+ </ body >
28+ </ html >
You can’t perform that action at this time.
0 commit comments