I am currently working on a project that involves running AngularJS and Angular together, utilizing the UpgradeModule
. I have successfully "upgraded" an AngularJS component (angular.component
) for use in our Angular components (@Component
) following the guidelines provided on the Angular 1.x upgrade page.
However, I encountered an issue when trying to declare this "upgraded" component in the AppModule declarations: []
array. An error message pops up saying unknown element 'tooltip'
.
To resolve this issue, I removed the declaration from the AppModule and instead declared it within the @NgModule
of the component where the upgraded component will be utilized. Surprisingly, this fixed the problem.
If you have a moment, please take a look at the code snippet in the Gist linked above to get a better understanding of the situation.