Lazy loading with DeepLinker


I am using lazy loading for the pages which ionic provides by default in CLI, because of that I don’t have any import of ngModule or pages in the app.module file.

With this, I want to integrate DeepLinker like I have shown below

imports: [
IonicModule.forRoot(MyApp, {
locationStrategy: ‘path’
}, {
links: [
{ component: HomePage, name: ‘Home’, segment: ‘home’ },
{ component: DetailPage, name: ‘Detail’, segment: ‘detail/:userId’ }

Now Deeplinker wants the reference of every component in the links. So I need to add all the imports in the file(app.module) where I define this deeplinks. So app.module or any other seprate file will have imports of every component though it is not added anywhere else in the ngModule because of lazy loading.

So my question is can I add links to this DeepLinker links object from any other module?
If this is possible i can add links to deeplinker in the same module where i have imported the declaration of page. So i need to import the page component only one in it’s own module not at 2 places own component and app module(for links entry)

For ex:
import { SamplePage } from ‘./sample’;

declarations: [
imports: [
export class SamplePageModule {}

Can I add deeplinker links from this module instead of adding all of the in app.module?