Why is the variable name “$scope” necessary ?

后端 未结 3 1257
遇见更好的自我
遇见更好的自我 2021-01-04 18:07

I\'m fairly new to Javascript ( just finished the book Eloquent Javascript ), and am currently reading AngularJS from O\'Reilly. And getting this small snippet of code to w

3条回答
  •  一整个雨季
    2021-01-04 18:16

    Because the Angular uses the name of the parameter in its dependency injection system, which constructs the controller.

提交回复
热议问题