Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229679

Reference to THIS is null

$
0
0

If you use function() { }, it won’t pass the context to the function.

Use this syntax, as described in the docs.

this.barcodeScanner.scan().then((barcodeData) => {
 // Success! Barcode data is here
}, (err) => {
    // An error occurred
});

Viewing all articles
Browse latest Browse all 229679

Trending Articles



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