Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #15608 - Add missing import & export of sharedModule #15755

Merged
merged 1 commit into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading