-
|
Hi, I apparently need to add declarations in app.config.ts : I don't have such a config file Is there any way to migrate properly ? I'm lost here. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Read the release notes. Specifically the "Breaking Changes" section.
No, it's not much more complicated and major version releases are not guaranteed to be backwards compatible. The documentation is just a bit more comprehensive. Ok, here is what you have to do when using
@NgModule({
// ....
providers: [provideUiTour()]
})
export class AppModule {}
@NgModule({
// ....
// yes, you have to use spread syntax - otherwise you'll get a TS type error. Not my fault, but Angular bug.
imports: [...TourMatMenu],
providers: [provideUiTour()]
})
export class AppModule {}
Everything else is pretty much the same like in |
Beta Was this translation helpful? Give feedback.
-
|
Thanks a lot !! And I did miss the release notes, thanks for the link ! |
Beta Was this translation helpful? Give feedback.
Read the release notes. Specifically the "Breaking Changes" section.
No, it's not much more complicated and major version releases are not guaranteed to be backwards compatible. The documentation is just a bit more comprehensive.
Ok, here is what you have to do when using
NgModulebased application (I'll try to update the docs some time soon to addNgModulesection).provideUiTour()to yourAppModule:TourMatMenuin yourNgModule: