victorabraham
1/6/2020 - 11:28 PM

Passing Attirbute From Aura To Lwc

<template>
    Value received from parent aura component to child lwc component ==> <b>{childVariable}</b>
</template>
import { LightningElement, api } from 'lwc';

export default class ChildLWCComponent extends LightningElement {
  @api childVariable;
}
<aura:component >
	<c:childLWCComponent childVariable="Value sent from parent"></c:childLWCComponent>
</aura:component>