From 6587fac7cfc433788b9b3ed4f6fca653ad5fbd0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87etin?= <69278826+cetincakiroglu@users.noreply.github.com> Date: Thu, 30 May 2024 14:55:36 +0300 Subject: [PATCH] Fixed #15608 - Add missing import & export of sharedModule --- src/app/components/toolbar/toolbar.ts | 6 +++--- src/app/showcase/doc/toolbar/templatedoc.ts | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/app/components/toolbar/toolbar.ts b/src/app/components/toolbar/toolbar.ts index ff0c96f43d4..e7a5c6ee697 100755 --- a/src/app/components/toolbar/toolbar.ts +++ b/src/app/components/toolbar/toolbar.ts @@ -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 @@ -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 {} diff --git a/src/app/showcase/doc/toolbar/templatedoc.ts b/src/app/showcase/doc/toolbar/templatedoc.ts index ed408697d63..52624d9c6e9 100644 --- a/src/app/showcase/doc/toolbar/templatedoc.ts +++ b/src/app/showcase/doc/toolbar/templatedoc.ts @@ -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 {