Passing Data to Stencil Component using @Prop()

In this article, we are going to learn how to pass data to component using @Prop() property Before going to read this article, you are recommended to read this article, if you didn’t read it. Here is an example to pass data: <br />import { Component,Prop } from ‘@stencil/core’;<br /><br />@Component({<br /> tag: ‘my-component'<br />})<br /><br … Read morePassing Data to Stencil Component using @Prop()

Creating Web Component with Stencil

In this article, we are going to create simple hello world web component using Stencil. If you ever worked with angular/typescript then It will be very easy for you to learn stencil,because most of the syntax are same. Now let’t take a look at stencil compnent <br />import { Component } from ‘@stencil/core’;<br />@Component({<br /> … Read moreCreating Web Component with Stencil