Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70747

Push not working here, can anyone help?

$
0
0

@MengenL wrote:

I don’t know what seems to be the problem here:

export class ProfilePage implements OnInit {

  data: Observable<any[]>;
  ref: AngularFireList<any>;
async addTransaction() {
    this.ref.push(this.transaction).then(() => {
      this.transaction = {
        value: 0,
        expense: false,
        month: 0,

and the error

type or paste code hereERROR Error: Uncaught (in promise): TypeError: Cannot read property 'push' of undefined
TypeError: Cannot read property 'push' of undefined

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70747

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>