0

im reading nfc tags through my created hook and I would like to pass them to my data properties. It shows me that I cannot read or set the property 'currentArticle'. I tried suggestions like

let self = this

self.currentArticle

but it did not work. Some people say you should have access to data variables like:

this.currentArticle

That way doesn't work as well. Any suggestions?

Ifloop
  • 129
  • 11

1 Answers1

1

I solved it through declaring let self = this at the beginning of the created hook. Then I simply used the self.currentArticle as I already talked about the suggestions I have seen about this problem.

Ifloop
  • 129
  • 11