Why do angularjs controller declaration have this syntax structure?

后端 未结 5 1944
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-27 23:55

I see the following angularjs controller syntax structure all the time.

angular.module(\'7minWorkout\').controller(\'WorkoutController\', 
[\'$scope\', \'$in         


        
5条回答
  •  情深已故
    2020-11-28 00:27

    This "repetion" is to make it safe for minification:

    AngularJS - Controllers, Dependencies, and Minification

提交回复
热议问题