ฝึก Angular 4:ตอนที่ 3 เรียนรู้โครงสร้าง

หลังจากสร้าง Project เรียบร้อยแล้วจะมีโครงสร้างตามนี้

เราจะสนเฉพาะไฟล์ที่อยู่ใน src เท่านั้น ส่วนอันอื่นไม่ต้องสนใจ

ส่วนที่จะต้องทราบคือ

src/app คือส่วนของ Interface เว็บทั้งหมด ไม่ว่าจะเป็น html,css

src/assets คือที่เก็บรูป

index.html คือหน้าเว็บหลัก เวลาเข้าเว็บจะเริ่มต้นที่นี่

favicon.ico คือ icon ของเว็บที่แสดงตรง browser

styles.scss คือ css หลักของเว็บ

)

Written by

เป็น back-end developer ที่อยากเรียนรู้ front-end :เขียน JAVA,PHP,C#,Android รักการปั่นจักรยานและการนอน

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade