I’ve added the line “**.js:Bundle” in my unoproject file already so that’s done.
Now, I tried requiring the main.js file, but i’m getting an “Observable not defined” error. It seems i need to define Observable again (as well as other variables/objects perhaps?) in each JS file that I require?
I made sure to export the Observable object from the main.ux file already, but I guess that doesnt work (?)
Here’s what I got so far
and my main.js file starts off w/o defining Observable like so…
var cust_name = Observable(""); var mobile_no = Observable(""); var cur_dept_id = Observable(""); var cur_dept_name = Observable(""); var dataSource_depts = Observable();
What am I missing here?