I am coming from iOS background and I am very new to Nativescript. I want to know is there any equivalent method to iOS viewWillAppear in Nativescript.
I want to update listview everytime the view is appearing. I have tried following methods. Nothing can do the job
ngOnInit(): void {
console.log("onInit called");
}
ngDoCheck(): void{
console.log("ngDoCheck called");
}
ngAfterContentInit(): void{
console.log("ngAfterContentInit called");
}
ngAfterContentChecked():void{
console.log("ngAfterContentChecked called");
}
ngAfterViewInit():void{
console.log("ngAfterViewInit called");
}
ngAfterViewChecked(): void{
console.log("ngAfterViewChecked called");
}
ngOnDestroy():void{
console.log("ngOnDestroy called");
}