Skip to content

Commit

Permalink
Fixed primefaces#15608 - Add missing import & export of sharedModule
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed May 30, 2024
1 parent fad41b6 commit 6587fac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/app/components/toolbar/toolbar.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CommonModule } from '@angular/common';
import { AfterContentInit, ChangeDetectionStrategy, Component, ContentChildren, ElementRef, Input, NgModule, QueryList, TemplateRef, ViewEncapsulation } from '@angular/core';
import { BlockableUI, PrimeTemplate } from 'primeng/api';
import { BlockableUI, PrimeTemplate, SharedModule } from 'primeng/api';
/**
* Toolbar is a grouping component for buttons and other content.
* @group Components
Expand Down Expand Up @@ -81,8 +81,8 @@ export class Toolbar implements AfterContentInit, BlockableUI {
}

@NgModule({
imports: [CommonModule],
exports: [Toolbar],
imports: [CommonModule, SharedModule],
exports: [Toolbar, SharedModule],
declarations: [Toolbar]
})
export class ToolbarModule {}
3 changes: 1 addition & 2 deletions src/app/showcase/doc/toolbar/templatedoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,12 @@ export class TemplateDoc {
typescript: `import { Component } from '@angular/core';
import { ToolbarModule } from 'primeng/toolbar';
import { AvatarModule } from 'primeng/avatar';
import { SharedModule } from 'primeng/api';
@Component({
selector: 'toolbar-template-demo',
templateUrl: './toolbar-template-demo.html',
standalone: true,
imports: [ToolbarModule, AvatarModule, SharedModule]
imports: [ToolbarModule, AvatarModule]
})
export class ToolbarTemplateDemo {
Expand Down

0 comments on commit 6587fac

Please sign in to comment.