You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've seen a configModel passed around, sometimes the whole thing, sometimes a portion.
For example, in fine.js:
this.routersView = new RoutersView({
proxyView: this.proxyView,
collection: this.routersColl,
configModel: this.configModel.get('routers'),
});
I just pushed a change to routers.js to replace a hardcoded api_url for the api_url value from the config, but in order to access this data I've had to add:
var appconfig = require('../../../../../config.json');
I guess with all the "magic tools" :) we are using, it should be easy to simplify this to something like:
var appconfig =require('libremapconfig')
so we don't need to have all those ../../ in there.
The text was updated successfully, but these errors were encountered:
I've seen a configModel passed around, sometimes the whole thing, sometimes a portion.
For example, in fine.js:
this.routersView = new RoutersView({
proxyView: this.proxyView,
collection: this.routersColl,
configModel: this.configModel.get('routers'),
});
I just pushed a change to routers.js to replace a hardcoded api_url for the api_url value from the config, but in order to access this data I've had to add:
var appconfig = require('../../../../../config.json');
I guess with all the "magic tools" :) we are using, it should be easy to simplify this to something like:
var appconfig =require('libremapconfig')
so we don't need to have all those ../../ in there.
The text was updated successfully, but these errors were encountered: