Angular firestore / firebase get datatables empty?

Angular firestore / firebase get datatables empty?

rainbowyenrainbowyen Posts: 1Questions: 1Answers: 0
edited September 2018 in Free community support

Please help

this.projects$.subscribe(result => {
         
this.options = {
    "data":  result,  
    "iDisplayLength": 10,
   "columns": [
     {"data": "name"},
     {"data": "title"},
     {"data": "job"}
   ],
   "order": [[1, 'asc']]
 }


})

can't get the data, shown empty table without error

Answers

  • colincolin Posts: 15,143Questions: 1Answers: 2,586

    Hi @rainbowyen ,

    You're not loading data from Ajax as part of the initialisation, so is the data local, or being pulled in outside of the initialisation - if so, it could be a timing issue that the table is being initialised before the data has arrived.

    We're happy to take a look, but it would help, as per the forum rules, if you could link to a running test case showing the issue so we can offer some help. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.