I can’t seem to get the alert
function to work. I’ve tried:
// 1.
alert('hello');
// 2.
import * as dialogs from 'ui/dialogs';
alert('hello');
// 3.
import * as dialogs from 'tns-core-modules/ui/dialogs'; // Shouldn't be needed at all.
alert('hello');
I’ve read:
https://docs.nativescript.org/ui/ns-ui-widgets/dialogs
and
https://docs.nativescript.org/ui/dialogs
But I can’t get it working following that. Any idea what is happening? Why it’s not working at all?
I’m on iOS. And using Nativescript + Angular.