角ng容器未显示值

问题描述

我正在使用ng-container来显示我在父组件中编写的ng内容

some-test-comp.ts

<div class="some-test-com" >
 
  <div class="some">
    
      <ng-content select="[value]"></ng-content>
   
  </div>
  
</div>

some.test-com.css

  .some {
position: relative;
  }

home-comp.ts 它将我路由到另一个组件ts。路由工作正常。

 <router-outlet> <router-outlet>

another-component.ts

 <some-test-com>


<ng-container value>
<div>Hello<div>

<ng-container>

</some-test-com>

<h3>hai<h3>  //I can see this line but not the above  Hello.The dive for Hello is present but the content is blank

我可以看到此行,但上面的Hello看不到。存在Hello的下潜按钮,但内容为空白

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)