Reza,

The drop down will be empty until the call to fetch and populate it so not 
sure you need to approach it any way.
All  you will need to do is add an ng-change 

ng-change="getCars(homes)" 

On Tuesday, August 8, 2017 at 2:53:33 PM UTC-7, Reza Razavipour wrote:
>
> I have a tree component, list of homes,      and a dropdown component, 
> list of cars in all of the homes.
>
> The selections in the tree control, as they change, will impact the 
> entries in the drop down component. As different homes are selected and 
> unselected, the list of cars will need to change. To get the list of cars, 
> based on selected homes, is an http call.
>
> The list of cars has to be retrieved by the time the user interacts with 
> the list of cars.
>
> When is the correct time to send the http request to ensure that data is 
> ready for the dropdown? Or how else should I approach this?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to