cancel
Showing results for 
Search instead for 
Did you mean: 

SAP UI5 Application, Index.html page title from I18n

narinderpal
Explorer

Hello Experts,

I am building a demo app in SAP UI5. I am just trying to replace hard coded text for Page Title for index.html page with I18n page attribute. This is a very simple exercise but I am facing difficulty. Can anybody explain, how i can achieve this?

Regards,

Narinder Pal Singh

View Entire Topic
karthikarjun
Active Contributor

Hi Narinder, You can use hook methods to get results.

onAfterRendering : {
document.title = this.getView().getModel("i18n").getResourceBundle().getText("<>");
}