Popup alert box in Ionic creator!?

Please help me!

How do I do a popup alert box in Ionic Creator?

I do not want to use alert (‘text’);

See: https://ionicframework.com/docs/api/components/alert/AlertController/

Is there any description how I can get the following code to work in Ionic Creator?

Do I need to make any setting to run this code?