我在项目中有以下 struct :
<app-nav-bar></app-nav-bar>
<app-slider></app-slider>
<app-solution></app-solution>
<app-platform></app-platform>
<app-team></app-team>
<app-contact></app-contact>
<app-footer></app-footer>
粘性导航栏不起作用,因为它只在其组件内部工作,我如何才能使它对组件起作用并保持领先地位.
我试着把它放在app.Component.html中,但不起作用.