@mhill Sure you can call selectAllItems()
directly. But since you mentioned that you’re calling the items from a server I included doSomething()
to add a bit of delay and an async update (simulating a server call), although you’ll most probably use something like Observables in such scenario. Unfortunately there’s currently a bug in zone.js
which breaks the Angular change detection when using Observables (in combination with HTTP calls) and the view updates are not working.