Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8843

Re: How to bind resource model in the reusable views of library project?

$
0
0

Hi Aron,

 

Set the resource model to the view as named model for example 'i18n' and have the bindings in view as 'i18n>propertyName from i18n file'

 

Code to set named model

View.setModel(resourceModel,'i18n');

 

 

The model should be same every place the view is instantiated

 

Thanks and Regards,Venkatesh


Viewing all articles
Browse latest Browse all 8843

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>