I am trying to use forceChatter:feed from (https://developer.salesforce.com/docs/component-library/bundle/forceChatter:feed/documentation).
The below code is working fine and the result is as expected.
<aura:component controller="chatterController" implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" >
<aura:handler name="init" action="{!c.doInit}" value="{!this}" access="global" />
<aura:attribute name="contactList" type="id" />
<forceChatter:feed type="Record" subjectId="a091y000000fXREAA2" /> //Passing Record Id directly
</aura:component>
Whereas if I pass the SubjectId with some attribute value, results are not getting displayed as expected.
<aura:component controller="chatterController" implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" >
<aura:handler name="init" action="{!c.doInit}" value="{!this}" access="global" />
<aura:attribute name="contactList" type="id" />
<forceChatter:feed type="Record" subjectId="{!v.contactList}" /> //Passing Variable which has record-id(a091y000000fXREAA2) directly
</aura:component>
Not able to find what's the exact reason why the results are not displayed properly when I pass subjected with a variable which has the record Id.
{!v.contactList}