Hello,
I am new to ionic. I barely know basics about html & css. I have not a single clue about javascript. However, I am determined to develop a small project in the form of an app for my church. I have no support, but I have been wandering around and searching on the web to make this impossible task happen. Therefore, I need your help in helping me built this app.
I am watching a video and trying to replicate the same commands for a desired output. I am not able to get it. I am using Ionic 3.19.0
import { Component } from ā@angular/coreā;
import { NavController } from āionic-angularā;
import { AlertController } from āionic-angularā;
@Component({
selector: āpage-homeā,
templateUrl: āhome.htmlā
})
export class HomePage {
constructor(public navCtrl: NavController, private alertCtrl: AlertController) {
}
openTodoAlert(){
let addTodoAlert = this.alertCtrl.create({
title: "Add a Todo",
message: "Enter your Todo",
inputs: [
{
type: "text",
name: "addTodoInput"
}
],
buttons: [
{
text: "cancel"
},
{
text: "Add Todo"
}
]
});
addTodoAlert.present();
}
}
For some strange reason, the alertcontroller is not working.
Could anyone please help me?