javascript - meteor angular - how to setup a dynamic dropdown menu using material-ui? -
need guidance on code structure in meteor. trying build dynamic list published collection server.
thanks in advance.
container code:
import { composewithtracker } 'react-komposer'; import { documentlist } '../../api/documentlist/documentlist.js'; import { document } '../components/document.js'; import { loading } '../components/loading.js'; import { meteor } 'meteor/meteor'; const composer = (params, ondata) => { const subscription = meteor.subscribe('documentlist'); console.log("container subscription: ", subscription); if (subscription.ready()) { const documentlist = documentlist.find().fetch(); ondata(null, { documentlist }); } }; export default composewithtracker(composer, loading)(document);
how build dropdown list documentlist?
Comments
Post a Comment