I'm using visual force page to embed my lightning component.
Is there a way to get the lightning component data/values(let's say that component has some text box and dropdowns with user input values) from my visual force page ?
I'm using visual force page to embed my lightning component.
Is there a way to get the lightning component data/values(let's say that component has some text box and dropdowns with user input values) from my visual force page ?
Best Answer
This is possible you can have communication enabled between lightning component and visualforce both way.
Consider below code:
Lightning App Code:
Lightning component code:
Lightning Component Controller Code:
Lightning Component Apex Controller Code:
This shows communication between lightning component and visualforce code. Here you can pass on data too. This opens up many possibilities in lightning + visualforce development.
Hope this answers your question.