[Angular] Get started with data binding and SPA
2014-01-01 21:43
344 查看
<!doctype html> <html ng-app="app"> <head> <title>This is my angular App</title> <script src="lib/angular.js"></script> <script src="lib/angular-route.js"></script> <script src="lib/angular-resource.js"></script> <script src="js/angular/app.js"></script> </head> <body> <div> <label>Name:</label> <input type="text" ng-model="yourName" placeholder="Enter a name here" /> <hr> <h1>Hello {{yourName}}</h1> </div> <div ng-controller="TestController"> <div ng-view></div> <hr> <pre>params = {{$location.path}}</pre> </div> </body> </html>
相关文章推荐
- Nesting Repeaters with Hierarchical Data and Server-Binding
- How to Get Started With JMeter: Part 2 - Building Scripts and Running JMeter
- [Django] Get started with Django -- Install python and virtualenv
- Choosing cheap software packages to get started with Data Mining
- Get Started with ElasticSearch and Wicket
- Get started with Docker 中文文档(1)——Part 1: Orientation and Setup
- Get started with Docker Machine and a local VM
- Get data out of excel and into R with readxl
- How to get started with WebRTC and iOS without wasting 10 hours of your life
- How to Install Apache Tomcat 8 (on Windows, Mac OS X, Ubuntu) and Get Started with Java Servlet Prog
- Get Started with the Enterprise Library Data Access Application Block
- Get Started with Git and Team Services
- Getting Started with AngularJS 1.5 and ES6: part1
- Learning C# 2005: Get Started with C# 2.0 and .NET Programming (2nd Edition)
- Getting Started with AngularJS 1.5 and ES6: part2
- A Programmer's Guide to Data Mining 2:Get started with recommendation system(User based filtering)
- How to get started with data science in containers
- Learning C# 2005 : Get Started with C# 2.0 and .NET Programming
- [Angular Directive] Implement Structural Directive Data Binding with Context in Angular
- Getting Started with AngularJS 1.5 and ES6: part 3