How to give {{application.path}} in custom component?
Content
Hi
I am using custom component 'mfe-file-picker' where I need to give the image path as {{application.path}} so that if migrated to new version then also it should take application path instead of hardcoding the src image path.
PFB the HTML
<img slot="startIcon" data-bind="attr: { src: droparea}"/>
PFB the JS
self.properties = context.properties;
self.fullPath = self.properties.applicationPath;
self.droparea = ko.observable('');
self.droparea(self.fullPath + 'resources/images/dropArea_arrow_ena.png');
I hope that the question is clear that instead of hardcoding like
"<img slot="startIcon" :src="../../webApps/csp/resources/images/dropArea_arrow_ena.png">"
0