I have the following code
getNotesContent(){  
        this.svsDb.getNotes(this.order_info.orderid).then(
            data=>{
                console.log("the list of notes content...", data);
                data.history.forEach( (notes:any)=>
                this.noteList.push(
                    {
                        stack:[
                            {text: 'Date: ' + notes.created_date},
                            {text: 'Note/Comments: ' + notes.notes},
                            { text: '--------------------------' },
                        ]
                    }
                )
            )
            }); 
       return this.noteList;    
}
My return value is always empty. Can someone let me know how I can have this function return a value? Thank you for your help.
A
 
    