Hello,

I'm new to angularjs (and also not very much versed in javascript either,
although I've done my share in server-side webapplication programming
(Roxen RXML)).

I've followed the tutorial on the website (phonecatApp) and also watched
some video's (e.g. photo album). Then I've already adapted the phonecatApp
to talk directly to my json capable home automation server.

The server can return a array of senors (their names only), or given a
sensor name the actual sensor-data of that sensor. (But not the combination
of both in one query, due to the nature of the server).

So currently my app first has a sensor-list (much like the phone-list, but
just having names) and when I click on a sensor it shows the data of that
sensor. Which is all controlled by the ngRoute / ng-view, both views having
different "controllers" (e.g. PhoneListCtrl and PhoneDetailCtrl).

But I'd rather have the app fetch the sensor-data in the list view right
away. So I somehow need to have a ng-repeat over the SensorListCtrl return
sensor list, and then use the {{sensor.name}} in a second controller.

So there I'm stuck. Both the phonecatApp and the album only use one
controller at any given view which in one query returns the complete data.
Is there a better example to look at?

Best regards,

Marc Dirix

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to