Alert not showing [Needs clarification]


#1

Good news
I am trying to print a “hello world” message on an alert for android devices and I am selling blank and try initializing a variable etc that should have the project for alert work.

thanks you


#2

Could you post a code snippet of what your code is?


#3

Hello,

import { Component } from "@angular/core";
import { Page } from "@angular/core"; 


@Component({
  selector: "my-app",
  templateUrl: "pages/login/login.html",
  styleUrls: ["pages/login/login-common.css", "pages/login/login.css"]
})

export class AppComponent {

  constructor(private page:Page) {}
  
  submit() {
    alert("Hola Mundo");
  }
  
}```

login.html

`<Button text="tap" (tap)="submit()"></Button>`