import { NFC, Ndef } from '@awesome-cordova-plugins/nfc/ngx';
constructor(private nfc: NFC, private ndef: Ndef) { }
...
let flags = this.nfc.FLAG_READER_NFC_A | this.nfc.FLAG_READER_NFC_V;
this.readerMode$ = this.nfc.readerMode(flags).subscribe(
tag => console.log(JSON.stringify(tag)),
err => console.log('Error reading tag', err)
);
try {
let tag = await this.nfc.scanNdef();
console.log(JSON.stringify(tag));
} catch (err) {
console.log('Error reading tag', err);
}