使用 bootstrap,我可以轻松设计导航栏。例如https://getbootstrap.com/docs/4.3/examples/#navbars
但是,在 PrimeNG 中,我找不到用于创建带有徽标、菜单选项和汉堡包图标的导航栏的组件或面板。
任何的想法?
我的里面有这个app/component.ts
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
template: `
<ul>
<li *ngFor="let course of courses">
{{ course }}
</li>
</ul>
`,
styleUrls: ['./app.component.css']
})
export class AppComponent {
course = ['Course 1', 'Course 2', 'Course 3'];
}
Run Code Online (Sandbox Code Playgroud)
在我的 app.module.ts 中,我还导入了必要的东西
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common'
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
CommonModule
],
providers: [], …Run Code Online (Sandbox Code Playgroud)