Edit in StackBlitz next generation editor ⚡️
- จงสร้าง Module DB แบบมี Routing ภายใต้ Folder src/app
- จงสร้าง Component DBRT01, DBRT02, DBRT03 ภายใต้ Module DB และต้องถูก Declare ที่ Module DB
- จงสร้าง Component DBRT01Detail ภายใต้ Folder scr/app/DB/DBRT01 และต้องถูก Declare ที่ Module DB
- จงสร้าง Component DBRT02Detail ภายใต้ Folder src/app/DB/DBRT02 และต้องถูก Declare ที่ Module DB
- จงสร้าง Component DBRT03Detail ภายใต้ Folder scr/app/DB/DBRT03 และต้องถูก Declare ที่ Module DB
- จงเขียน routing ของ module DB โดยชื่อ routing จะเป็นชื่อ component ที่สร้าง
- จงสร้าง Module SU แบบมี Routing ภายใต้ Folder src/app
- จงสร้าง Component SURT01, SURT02, SURT03 ภายใต้ Module SU และต้องถูก Declare ที่ Module SU
- จงสร้าง Component SURT01Detail ภายใต้ Folder scr/app/SU/SURT01 และต้องถูก Declare ที่ Module SU
- จงสร้าง Component SURT02Detail ภายใต้ Folder src/app/SU/SURT02 และต้องถูก Declare ที่ Module SU
- จงสร้าง Component SURT03Detail ภายใต้ Folder scr/app/SU/SURT03 และต้องถูก Declare ที่ Module SU
- จงเขียน routing ของ module SU โดยชื่อ routing จะเป็นชื่อ component ที่สร้าง
- จงสร้าง component not found ที่ folder src/app และต้องถูก Declare ที่ Module App
- จงเขียน Routing ของ app routing โดยจะทำเป็น Lazy loading ตาม Module หากเข้าด้วย Path ผิดจะไปที่หน้า Not Found
- แต่ละหน้าจะมี link ดังนี้
- app.component.html
- dbrt01
- dbrt02
- dbrt03
- surt01
- surt02
- surt03
- dbrt01.component.html
- dbrt01detail
- app
- dbrt01-detail.component.html
- dbrt01
- dbrt02.component.html
- dbrt02detail
- app
- dbrt02-detail.component.html
- dbrt02
- dbrt03.component.html
- dbrt03detail
- app
- dbrt03-detail.component.html
- dbrt03
- surt01.component.html
- surt01detail
- app
- surt01-detail.component.html
- surt01
- surt02.component.html
- surt02detail
- app
- surt02-detail.component.html
- surt02
- surt03.component.html
- surt03detail
- app
- surt03-detail.component.html
- surt03
- app.component.html
** Goodluck Havefun **