Quantcast
Channel: SCN : Unanswered Discussions - SAP Fiori
Viewing all articles
Browse latest Browse all 1879

Unable to import custom js in Component.js

$
0
0

Hi Folks,

 

I imported a WebIDE Fiori project in my eclipse workspace.

I need to import a custom .js file - stored in location WebContent > model > Config.js into the Component.js

 

I have declared the Config.js as -->  jQuery.sap.declare("namespace.Config");

 

In the Component.js - when I import the Config.js using jQuery.sap.require("namespace.Config");

     I keep getting the ReferenceError ... failed to load .. 'model' is undefined.

 

Is there any more declaration that needs to be done.

 

Regards,

Brian


Viewing all articles
Browse latest Browse all 1879


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