0

NewBee Lightning, I have a very small requirement of passing values from textbox of firstname field from one component to other component and last name field value from second component to first component. Below is my code for component one

<aura:component implements="force:appHostable">


<link href='/resource/bootstrap/' rel="stylesheet"/>
<body aura:id="content">

    <div class="navbar navbar-default navbar-static-top" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <a href="#" class="navbar-brand">DashBoard</a>
            </div>
        </div>
    </div>

    <ui:inputText aura:id="fname" label="First Name" required="true"/>
    <ui:inputText aura:id="lname" label="Last Name" required="true"/>

</body>
</aura:component>
1
  • A little note about your code, tags starting with ui: are deprecated now. Oct 6, 2021 at 5:07

1 Answer 1

0

Try using event handling for same. There are 2 options -

  1. either use application event
  2. component event

You can read more about it at - Component Events Application events

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .