I am new to WeChat Mini program development. I came from React Technology there we were passing custom attributes ( props ) from one component to an another. I am trying to pass props from one component to another component but here I am failed. Please help me how to send props in WeChat Mini-Program .
Thanks
First Component Code
<!--index.wxml-->
<view class="container">
<headerComponent prop-a="{{dataFieldA}}" prop-b="{{dataFieldB}}" />
</view>
Second Component Code
<!--components/header.wxml-->
<text>Header Component</text>
<text>{{prop-a}}</text>
I am trying but prop-a
data is not showing it give me result NaN