0
I passed parameters to another TS with:
console.log('Data', navParams.get('sessoes'));
That shows me this result:
{data: "2018-09-11", weight: "200", sessoes: "20", repeticoes: "2", notas: "teste"}
This way I can catch each of the fields in the Array:
var object = navParams.get('sessoes');
console.log(object["data"]);
console.log(object["weight"]);
console.log(object["sessoes"]);
console.log(object["repeticoes"]);
console.log(object["notas"]);
Now I need to take this data to be shown in a form that has [(ngModel)]="sessao.data", [(ngModel)]="sessao.weight", [(ngModel)]="sessao.sessoes"
, etc....
How to place these objects in an ngModel directive for my Ionic/Angular form?