原始状态
在根目录app.coment.html 中插入组件test1.html
<tes1> </tes1>
这个是简单的插入,并没有使用到ng-conecnt
简单插入
app.comment.html
<test-ng-content2>
我是外部嵌入的内容2
</test-ng-content2>
test-ng-content2.compent.html
<ng-content></ng-content>
这是成功把根目录内容带入了子组件内
注意
内容投射只能父组件显示投射内容
子组件单独展示并不能把内容带过来
个人观点,只能说在index页面显示时有一些内容变动