我在演示中使用ng-content
,但我的innerHTML
没有显示。为什么内部内容没有显示?
这是我的代码 https://stackblitz.com/edit/angular-lav42u
@Component({
selector: 'hello',
template: `
<h4 class="card-title">
<ng-content select=".setup"></ng-content>
</h4>
`,
styles: [`h1 { font-family: Lato; }`]
})