Angular -กรณีสร้าง Component เพื่อให้ Component อื่นเรียกใช้ ต้องทำอะไรบ้าง

Thanaroj chareonphuthiwat
1 min readNov 28, 2019

--

จากรูป

  1. สร้าง Component ที่ต้องการใช้งาน เช่น popup หรือ button
  2. ต้อง ประกาศ entryComponents ที่ modules ใน Component นั้นๆ จากรูป ขั้นตอนที่ 2 จะไปตั้งค่าที่ file suplier.module.ts ตามรูป

--

--

No responses yet