OK, so I'll try making a 'NextQueryService' or the like, that will store 
the query info from the quick search form until the navigation to the 
appropriate advanced search page is complete.  

The idea of Javascript data/variables persisting through page changes is 
still very new to me!

On Tuesday, April 1, 2014 2:26:32 AM UTC-4, Luke Kende wrote:
>
> Services are your friend.  Any state that needs to be maintained between 
> views and controllers can be done in services.  Worst-case you can use 
> $rootScope. Do not post.
>
> Also, simplify.  If you are just learning Angular, then why make it so 
> complicated to begin?
>
> On Monday, March 31, 2014 4:25:36 PM UTC-6, Ian Durkan wrote:
>>
>> to clarify - I need to convey the info from the quick search form to the 
>> controller governing an advanced query page's partial.
>>
>> On Monday, March 31, 2014 6:24:25 PM UTC-4, Ian Durkan wrote:
>>>
>>> Greetings,
>>>
>>> I'm very new to Angular and trying to use it to put together the 
>>> frontend for a fairly complicated new application.  The application 
>>> features a navbar w/ dropdowns powered by Angular UI Bootstrap - most 
>>> navbar buttons and dropdown items lead to separate Angular routes, each 
>>> handled by its own controller and partials.  The partials are displayed in 
>>> a view between the navbar and a header, etc etc.  One dropdown is the 
>>> Search dropdown, with several items linking to three advanced search pages, 
>>> each for searching on one of three business entity types - "Widgets", 
>>> "Widget Sets", and "Widget Users"...  Each advanced search page has a 
>>> number of filters and options for narrowing down a query so the user can 
>>> find what they need within the entity type for that page. 
>>>
>>> The navbar also includes a "quick search" popover - it has a text string 
>>> field, radio buttons for selecting which business entity type to search, 
>>> and a big green "Search" button.  Making this quick search thing work is 
>>> where I'm having trouble.  So user types a string, picks the "Widgets" 
>>> entity radio button and clicks "Search".  
>>>
>>> After clicking the Send button I want to send the browser to the 
>>> "Widgets" Advanced Search page and filter based on the text string from the 
>>> popover.
>>>
>>> How do I make Angular programatically switch to the proper Advanced 
>>> Search page *while conveying the information from the quick search 
>>> popover form?*  I can't figure out how to do this.  Thanks for your 
>>> help.
>>>
>>> Or do I just need to give up and do an old-fashioned form POST -> 
>>> redirect to results page??
>>>
>>

-- 
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.

Reply via email to