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

Angular Error: NgClass can only toggle CSS classes expressed as strings #7182

Closed
1 task done
KarolDabrowski opened this issue Jan 31, 2023 · 4 comments
Closed
1 task done

Comments

@KarolDabrowski
Copy link

Reduced Test Case

https://stackblitz.com/edit/github-eiwdny?file=src/app/app.component.html

Do you understand that if a reduced test case is not provided, we will intentionally delay triaging of your ticket?

  • I understand

Which connector are you using (React/Angular/etc)?

Angular

Bug Description

I'm using premium plugin resource-timegrid at version 6.1.1 with angular wrapper. I wanted to customize labels of resource columns with custom angular content templates:

<full-calendar #calendar
                 [options]='calendarOptions'>
   <ng-template #resourceLabelContent let-arg>
      Whatever
   </ng-template>
</full-calendar>

But mysterious error keep showing up in the console:
Error: NgClass can only toggle CSS classes expressed as strings, got undefined and lots of uncomprehensible stack traces after. On local serving it somehow works, but on stackblitz it even causes resource labels to not show at all. In both cases, it stains console in red and thats quite nasty.
Is this a bug, or maybe I understood something wrong in usage?😅

2023-01-31 16_41_15-Fullcalendar - Fullcalendar Examples - StackBlitz

2023-01-31 16_54_35-Settings

@KarolDabrowski
Copy link
Author

Small update, looking further into, local serving only shows the first custom resource label, but the rest does not show at all after the error.

image

image

@iCrawl
Copy link

iCrawl commented Jan 31, 2023

Just to chip in, same thing happens with the #dayHeaderContent injection

@arshaw arshaw added this to the upcoming-release milestone Jan 31, 2023
@arshaw arshaw changed the title Resource timegrid plugin - custom resource label content throws errors in console Angular Error: NgClass can only toggle CSS classes expressed as strings Feb 1, 2023
@arshaw
Copy link
Member

arshaw commented Feb 1, 2023

queued for release fullcalendar/fullcalendar-workspace@e27502c

@arshaw
Copy link
Member

arshaw commented Feb 7, 2023

@arshaw arshaw closed this as completed Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants