作者:mobiledu2502854827 | 来源:互联网 | 2023-10-10 21:48
IanewtoAngularandIjustcompletedatutorialfromCodeSchoolforbeginnersinAngular.Nowin
I a new to Angular and I just completed a tutorial from Code School for beginners in Angular. Now in the second video the instructor of the course says that we are going to wrap our whole application code into a closure. The link to the video is below. He says this somewhere at 00:30. Now why is it a good practice to wrap our code into a closure?
我是Angular的新手,我刚刚为Angular的初学者完成了Code School的教程。现在在第二个视频中,课程的讲师说我们将整个应用程序代码包装成一个闭包。视频链接如下。他在00:30某处说。现在为什么将代码封装到闭包中是一个好习惯?
Link to the video
链接到视频
1 个解决方案