Navigating to another page using button

nativescriptcore

#1

I want to navigate to another page using button. I used follwing code:
var frames = require ("tns-core-modules/ui/frame");
function onTap (){ frames. topmost.navigate("about/about"); }
exports.onTap = onTap;
But not working. Plz help.


#2

just cross check this it might help you…

                            frameModule.topmost().navigate({
                                moduleName: "views/home/invoice/create/create-invoice",
                                context: contactDetails._id,
                                animated: true,
                                transition: {
                                    name: "slide",
                                    duration: 500,
                                    curve: "easeOut"
                                }
                            });