Angular Hybrid App: How to run Angular and AngularJS with different routes

The aim to rewrite step by step my AngularJS application using Angular. I am following and everything works fine. But all html code that has been migrated from AngularJS is placed in index.html. I want to create my Angular app component with router outlet and controls that allow to switch content by replacing AngularJS and Angular Components. So I have moved html code to myCustomComponentForUpgrade.component.html and bootstrapped updates in the particular .ts file. So then I’ve get an error Error: Template parse errors:'custome-directive-from-ng1' is not a known element:. Is there any way to handle upgrade by this way? Or is there any ways to get Angular and AngularJS run on different routes ?


Source: AngularJS