1 00:00:00,110 --> 00:00:04,620 In this lecture, we're going to briefly talk about the main entry file. 2 00:00:04,640 --> 00:00:06,560 Every application has one. 3 00:00:06,560 --> 00:00:09,620 It's the first file in our application to run. 4 00:00:09,650 --> 00:00:14,150 Therefore, it's the most critical file in the entire application. 5 00:00:14,180 --> 00:00:18,190 There are two responsibilities the main entry file has. 6 00:00:18,200 --> 00:00:21,800 First, it needs to load the Angular framework. 7 00:00:21,830 --> 00:00:25,610 Our app won't be able to function correctly without Angular. 8 00:00:25,640 --> 00:00:29,400 The second responsibility is to load our app's code. 9 00:00:29,420 --> 00:00:33,290 It's important we load Angular before loading our app. 10 00:00:34,220 --> 00:00:38,350 The main entry file can be found inside the source directory. 11 00:00:38,360 --> 00:00:40,940 It's called Main.ts. 12 00:00:43,220 --> 00:00:49,190 The code inside this file is already performing the steps for loading Angular and our application. 13 00:00:49,190 --> 00:00:53,840 Regardless, I think it would be a good idea to write the code for this file. 14 00:00:53,840 --> 00:01:00,120 This way, we can genuinely understand why Angular has decided to write this code for us. 15 00:01:00,140 --> 00:01:02,510 Let's empty out the entire file. 16 00:01:04,950 --> 00:01:07,560 Our app will temporarily be broken. 17 00:01:07,560 --> 00:01:11,280 That's to be expected since we removed the entire file. 18 00:01:11,280 --> 00:01:13,050 Let's check out the browser. 19 00:01:13,590 --> 00:01:15,570 The page is completely blank. 20 00:01:15,570 --> 00:01:16,440 Perfect. 21 00:01:16,440 --> 00:01:21,930 In the next lecture, we're going to start rewriting the file to get a better understanding of what's 22 00:01:21,930 --> 00:01:24,870 going on when Angular starts our app.