标签: angular-ng

使用 PrimeNG 设计的顶部导航栏

使用 bootstrap,我可以轻松设计导航栏。例如https://getbootstrap.com/docs/4.3/examples/#navbars

但是,在 PrimeNG 中,我找不到用于创建带有徽标、菜单选项和汉堡包图标的导航栏的组件或面板。

任何的想法?

angular-ng primeng

7
推荐指数
0
解决办法
5608
查看次数

Angular 2:简单 *ngFor 不起作用

我的里面有这个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)

angular-ng angular2-databinding angular

0
推荐指数
1
解决办法
1217
查看次数