I want to change the default browser title when the user press my Lightning Component Tab. How can I do it?
In visualforce, I had the title attribute <apex:page title="My title">
, but in Lightning Experience I found no way to accomplish this, the title is always Lightning Experience | Salesforce:
Any ideas?
Best Answer
You should do that in
init
handler of component.Sample:
cmp file:
controller JS:
Output: