Skip to content

Is Apollo template compatible with existing Angular projects generated by CLI? #1571

Discussion options

You must be logged in to vote

I think NG8002: Can't bind to 'ngClass' since it isn't a known property of 'div' is a follow-up error that is not directly related to BrowserModule.

ngClass comes from the CommonModule. If you use Stand-Alone-APIs the CommonModule is missing in the Setup.
The Apollo Theme does not use Standalone-APIs, yet.
You might need to migrate these components to Standalone-Components.

You can use a script for that: https://angular.io/guide/standalone-migration#migrate-an-existing-angular-project-to-standalone

Hope this helps

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@DABBEL-cheng
Comment options

@GregOnNet
Comment options

Answer selected by DABBEL-cheng
@DABBEL-cheng
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants