标签: angularjs
基于我所看到的:
app.controller('MainController', function ($scope, Twilio, $http) {
的效果与此相同:
app.controller('MainController', ["$scope", function ($scope, Twilio, $http) {
Angular文档确实说要在数组中包含$ scope依赖项,但第一种方法根本不包含数组,只包含函数,并且仍然有效。这有什么不同吗?