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"}
In this way, I can get each of the Array fields:
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 get this data to be shown on a form that has [(ngModel)]="sessao.data", [(ngModel)]="sessao.weight", [(ngModel)]="sessao.sessoes"
, etc ...
How do I put these objects in a ngModel directive for my Ionic / Angular form?