[問題] angularJS $scope
angularJS 新手初學
在w3school看到下面範例
http://www.w3schools.com/angular/tryit.asp?filename=try_ng_tables_simple
為什麼他在controller裡面不需要產生$scope object?
ex:
app.controller('customersCtrl', ['$scope',function($scope, $http) {
...
}]);
而我自己將它補入之後卻無法執行 http get
http://plnkr.co/edit/o8CoU53e9jhTnZMfZ5mP?p=preview
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 71.177.133.230
※ 文章網址: https://www.ptt.cc/bbs/Web_Design/M.1449209240.A.19D.html
推
12/04 15:39, , 1F
12/04 15:39, 1F
→
12/04 15:39, , 2F
12/04 15:39, 2F
→
12/04 15:39, , 3F
12/04 15:39, 3F
→
12/04 15:43, , 4F
12/04 15:43, 4F
推
12/04 18:39, , 5F
12/04 18:39, 5F
Web_Design 近期熱門文章
PTT數位生活區 即時熱門文章