AngularJS and Typescript - Injecting Services

前端 未结 2 1236
情歌与酒
情歌与酒 2021-02-06 01:39

I have been writing AngularJS apps for awhile now, but Typescript is new to me, and then adding in AngularJS to Typescript is a bit different than I am use to.

Anyways,

2条回答
  •  不要未来只要你来
    2021-02-06 02:03

    both are just the same but during minification in your first option ur code will be busted since minification logic is going to change the name of dependencies so in the second option u give an array of dependencies which the minification algo wont touch

提交回复
热议问题