ฉันกำลังอยู่ระหว่างการพัฒนาเว็บแอป ฉันใช้ AngularJS เพื่อโหลดไฟล์ทั้งหมดลงใน UI แบบไดนามิก
ฉันมีไฟล์ index.html
ซึ่งไฟล์ทั้งหมดจะถูกโหลดแบบไดนามิกเมื่อคลิกหรือเมื่อโหลด
//index.html
<signin button> <signup button> // etc.,
//on-clicking signin button a SignIn-page will load in the below div
<div id="bodyview"></div>
// end of index.html
ตอนนี้หน้าลงชื่อเข้าใช้ของฉันดูเหมือนโครงสร้างด้านล่างนี้
/*a div where my accordion menu will load when the
*below submit button is clicked*/
<div id="menu"></div>
//other sign-in-form stuff will follow on...
//submit button at the end
<submit button> //only on clicking the submit button the menu will be loaded
ตอนนี้ปัญหาของฉันคือ แม้ว่าฉันจะสามารถโหลดไฟล์ accordion menu.html ได้ แต่ฉันก็ไม่สามารถโหลดไฟล์ css และ js ที่มันขึ้นอยู่กับมันได้ ฉันค้นคว้าเกี่ยวกับ stackoverflow แล้ว แต่ไม่มีใครได้ผลสำหรับฉัน
ใครสามารถช่วยระบุวิธีการโหลดการพึ่งพา css และ js โดยใช้ AngularJS ได้