I'm using Angular Upgrade module with components upgraded from AngularJS. When I use components inside templates they are working fine but when I try to use them as entry components I receive an error:
MyNgComponent cannot be used as an entry component.
Probably it's because upgraded components are defines as directives. I've also tried to wrap into another component but in this case it gives me an error when tries to create a component instance:
NullInjectorError: No provider for $scope!
$scope
is requested by internal UpgradeComponent implementation and it's resolved fine if component is used in a template.
Is it a hybrid mode limitation or is there any way to use it as entry component?
Entry component is needed because I need to instantiate this component from JS and manually attach to non-angular DOM element