Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 611 Bytes

README.md

File metadata and controls

9 lines (5 loc) · 611 Bytes

Example Ionic project of how to use components.module.ts and pipes.modules.ts modules to load custom components and pipes.

See /src/components/components.modules.ts for method of loading a custom component.

That ComponentsModule class gets imported in the src/app/app.module.ts file, as well as any modules that will use the component, for example our /src/pages/home.module.ts file.

Likewise for pipes.

Note that if the custom components use ionic magic things like ion-icon, the component needs to be imported with IonicModule.forRoot(Word). See components.module.ts for how to do this.