1.加載了哪個頁面 |
- 啓動時加載了src下面的index.html文件
2.加載了那些腳本 |
main.ts是啓動時加載的腳本
走對應的主組件app.component.ts對應的css選擇器app-root。
- main.ts介紹
3.腳本做了什麼事 |
- 找到選擇器後angular會用主組件app.component指定的模板內容(templateUrl:’./app.component.html’)替換掉loading…標籤
- 所以頁面顯示前會顯示Loading…,然後顯示app.component.html頁面
4.小結 |
好了,可以開始畫畫了,畫的好了叫大神,畫的不好還是去整後端吧!