Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49317

Objects and ngFor bind (or change a toggle inside a ngFor)

$
0
0

@pablobaldovi wrote:

Hi,
I m developing a simple app. I make a request obtaining a object like this;

[{“name”:“device-1”, “code”:“00001”, “status”: true},
{“name”:“device-1”, “code”:“00001”, “status”: true},
{“name”:“device-1”, “code”:“00001”, “status”: true}]

the i use a ngFor to display each as a toggle.

I can read the toggle value inside my page controller, but i cant change the value from the controler (for example to update the device status)

what’s de correct approach?

thanks

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49317

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>