# EXAMPLE: Integration StencilJS Web Component in Ionic App

**URL:** <https://forum.ionicframework.com/t/example-integration-stenciljs-web-component-in-ionic-app/106083>\
**Category:** Stencil\
**Created:** [September 20, 2017, 11:58am UTC](https://forum.ionicframework.com/t/example-integration-stenciljs-web-component-in-ionic-app/106083 "2017-09-20T11:58:48Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![reedrichards](https://avatars.discourse-cdn.com/v4/letter/r/34f0e0/32.png) [@reedrichards](https://forum.ionicframework.com/u/reedrichards)\
**Post date:** [January 31, 2018, 9:33pm UTC](https://forum.ionicframework.com/t/example-integration-stenciljs-web-component-in-ionic-app/106083/5 "2018-01-31T21:33:42Z")

</div>

I just gonna let that here because, at least for me now, the way to import the component built with Stencil into Ionic was a bit different

First there is a description of what to do with angular on the official StencilJS website [https://stenciljs.com/docs/framework-integration](https://stenciljs.com/docs/framework-integration)

What I did in case of Ionic (after having build and installed the component, named “my-component” in my case):

1. Like describe above, the `CUSTOM_ELEMENTS_SCHEMA` need to be declared

2. In `app.modulte.ts` an import should be added, like

3. The component lib installed under node\_modules not gonna be included in the vendor.js file. Therefor it need to be copied. To do so, I have overwritten `copy.config.js` from `app-scripts` and add a the `copyMyComponent` block like following

**UPDATE**

@AaronSterling describe nicely, in his component’s README, all the steps needed to include a component in an Ionic project [https://forum.ionicframework.com/t/stencil-importing-stencil-components-into-ionic-angular/](https://forum.ionicframework.com/t/stencil-importing-stencil-components-into-ionic-angular/)

---

_[View the full topic](https://forum.ionicframework.com/t/example-integration-stenciljs-web-component-in-ionic-app/106083)._
