Thanks you for your explanation, I will work on it detail tonight.
Thanks, On 2 May 2014 15:05, Gaurav <[email protected]> wrote: > Advantage of using resolve is that you will have the data coming first > before the template appears. > Let me give you an example where resolve can be used. In case of getting > google-maps with respect to geo location. If we have the lat and lat > through geolation first then we can use that in controller to build the > map. On the other hand if controller loads then first the map will be > loaded as geo location will take time and then again we have to rebuild the > map. > > You can read about state provider and all its events at > https://github.com/angular-ui/ui-router/wiki > > Thanks > Gaurav > > > On Friday 02 May 2014 01:01 PM, Tha Sophearak wrote: > > That's awesome, I'll will working more on that. one quest here, by using > state to provide and resolve functions to get data before controller gets > loaded, what the benefit of that. > > thanks, > > On Friday, 2 May 2014 13:03:47 UTC+7, Gaurav Saini wrote: >> >> Hello, >> >> This is what I prepared for your book details page. You can also >> improve this by using state provide and resolve functions to get data >> before controller gets loaded. For now I have just simply implemented using >> routes. >> >> http://plnkr.co/edit/pF7nz9Zf1YPtMCFDB1b8?p=preview >> >> Thanks >> Gaurav >> >> On Thursday, May 1, 2014 7:45:03 PM UTC+5:30, Tha Sophearak wrote: >>> >>> what I have >>> http://plnkr.co/edit/2G42FzSyosuZKCzfAD79?p=preview >>> >>> I want the list is linkable to detail of item. How to implement that, >>> >>> Thanks for your time, I'm much appreciate all answer. >>> >> -- > You received this message because you are subscribed to a topic in the > Google Groups "AngularJS" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/angular/npi3tgt9Maw/unsubscribe. > To unsubscribe from this group and all its topics, 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/d/optout. > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "AngularJS" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/angular/npi3tgt9Maw/unsubscribe. > To unsubscribe from this group and all its topics, 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/d/optout. > -- <!-- Footer --> SophearakTHA (Mr.) HP: +85598455525 sophearak.github.io twitter.com/SophearakTha <https://twitter.com/sophearaktha> google.com/+ThaSophearak -- 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/d/optout.
