如果ViewContainerRef 在Component 的template 中沒有指定,則指向host 元素,也就是Component 自己,插入的內容會緊鄰Component,如文中第一個範例。
確定! 回上一頁