Problems between components

0

I am developing an app in angle 5. I have two modules module1.ts , module2.ts are both included in app.module.ts . Example:

Module1.ts

@NgModule({
imports: […],
exports: [componente1Component,…],
declarations: [componente1Component,…..],
providers: [……],
  schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA],
   entryComponents: […]

})
export class Module1Module {
}

Module2.ts

@NgModule({
imports: [Module1Module,…],
exports: […],
declarations: [componente2Component,…..],
providers: [……],
  schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA],
   entryComponents: […]

})
export class Module2Module {
}

App.Module.ts

Import {Module1} from …..
Import {Module2} from …..
@NgModule({
  declarations: [
    AppComponent
  ],
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
  imports: [Module1, Module2],

  providers: [..],
  bootstrap: [AppComponent]
})
export class AppModule {
}

These are my modules. How module1.ts is imported in module2.ts I can call from any component of module2.ts the components of module1.ts . What I want to do is how to call the exported components of module2.ts in module1.ts ?

    
asked by Richard Urquiza Santiesteban 11.09.2018 в 19:55
source

0 answers