看美劇,提供迅雷下載連結 http://kanmeiju.net/
迅雷離線,代抓檔案 http://lixian.vip.xunlei.com/task.html
| function TodoCrtl($scope) { | |
| $scope.newItem = ''; | |
| $scope.todoList = []; | |
| $scope.addItem = function(){ | |
| if(this.newItem){ | |
| this.todoList.push({label:this.newItem}); | |
| this.newItem = ''; | |
| } | |
| } | |
| } |
| <!DOCTYPE html> | |
| <html ng-app> | |
| <head> | |
| <title>邊學AngularJS邊做Todo List (1)</title> | |
| <script type="text/javascript" src="http://code.angularjs.org/angular-1.0.1.min.js"></script> | |
| </head> | |
| <body> | |
| <h1>Hello World</h1> | |
| <p>AngularJs say hello to {{yourName || 'everyone'}}!</p> | |
| <label>輸入你的姓名,Angular會跟你打招呼</label> |
| function TodoCrtl($scope) { | |
| $scope.newItem = ''; | |
| $scope.todoList = []; | |
| $scope.addItem = function(){ | |
| if(this.newItem){ | |
| this.todoList.push({label:this.newItem}); | |
| this.newItem = ''; | |
| } | |
| } | |
| } |
| function TodoCrtl($scope) { | |
| $scope.newItem = ''; | |
| $scope.todoList = []; | |
| $scope.addItem = function(){ | |
| if(this.newItem){ | |
| this.todoList.push({label:this.newItem}); | |
| this.newItem = ''; | |
| } | |
| } |
| 'use strict'; | |
| describe('Todo List', function() { | |
| beforeEach(function() { | |
| browser().navigateTo('../../public/todoWithUpdate.html'); | |
| }); | |
| it('should display "Todo List" when page loaded', function() { |
看美劇,提供迅雷下載連結 http://kanmeiju.net/
迅雷離線,代抓檔案 http://lixian.vip.xunlei.com/task.html