未显示 PrimeNg 菜单栏自定义内容

PrimeNg Menubar Custom Content not displayed

我已按照以下文档中的说明进行操作: https://www.primefaces.org/primeng/#/menubar

在我的模块文件中,我导入了正确的库:

import {MenubarModule,MenuItem} from 'primeng/primeng';

然后在我的模板中定义:

<p-menubar [model]="items">
  <button pButton label="Logout" icon="fa-sign-out"></button>
</p-menubar>

但是,按钮未在 html 结果中呈现。我是不是哪里搞砸了?

此致。

 imports: [
BrowserModule,
HttpModule,
DataTableModule,
SharedModule,
ButtonModule,
MenubarModule,
RouterModule.forRoot([
  {
    path: 'home',
    component: HomeComponent
  },
  {
    path: 'login',
    component: LoginComponent
  }, {
    path: '',
    redirectTo: '/login',
    pathMatch: 'full'
  },
])

],

文档中引用的是4.1 RC3版本,当时使用的是RC2:

https://forum.primefaces.org/viewtopic.php?f=35&t=51618