How pass two parameters with ng-click?

Below, my index.html image showing where is ng-click

Below, my App.js(Controller) image showing where is function savePerson

Below, Chrome Alert showing undefined parameters

Does anyone know why this is happening?

This happens after clicking on button [Criar conta]

sorry I started on ionic 2, this is old code for me but cadastro.username and senha is valid.

You should update ionic locally and check a few tutorials. Like with store. Parse is now deprecated.

Have fun,

You’re calling your alert when the controller loads. Are that time those variables are undefined. Then later when you click they are set, but at that point your alert already ran, so you’ll never see them.