Skip to content

wilson0506/ionic3-components-pipes-modules

 
 

Repository files navigation

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.

About

Simple example of how to load components and pipes with Ionic 3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 42.2%
  • CSS 31.2%
  • HTML 18.1%
  • JavaScript 8.5%