If they are components that are created dynamically, Angular provides the ComponentRef class.
See here: https://angular.io/api/core/ComponentRef
A statically declared component won't have this class. Although, you can pass around Component identifiers as an untyped variable as needed, as long as you import them into the relevant components / services. If you're using dependency injection, i.e, to inject a component instance into its host directive, the 'type' would just be whatever its name is, like so -
import { Directive } from '@angular/core'
import { MyNavigatorComponent } from '../components/my-nav.component'
constructor (private navigator: MyNavigatorComponent) {
OnInit
for your needs? In general, components are written as unrelated classes with interfaces mixed in as required. – WhitewallRouteComponent
and make all relevent components implement it – Balbur