2
나는 각도 배우고 및 $ 범위가 전달 된 이유가 물었을 때 바로 컨트롤러에 대한 동료에게 설명했다 두 번각도 범위, 범위?
['$scope', function($scope) {
사람이 우리를 계몽 할 수 있습니까?
myApp.controller('appList', ['$scope', function($scope) {
$scope.things = [
{
"name":"Cheese",
"id":"1",
"short-name":"ch"
},
{
"name":"Bread",
"id":"2",
"short-name":"br"
},
{
"name":"Wine",
"id":"3",
"short-name":"wi"
}
];
}]);
우리가 작성한이 예제는 지나치게 간단합니다.
https://docs.angularjs.org/guide/di#inline-array-annotation 및 https://docs.angularjs.org/tutorial/step_05#a-note-on-minification – JoseM