Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Say for input from a search field - I like to avoid URL parameters as I 'like the look' of a clear Url field. Is there any performance hit of creating a service for such a simple thing of passing search terms from one page to the show results page? Commented Mar 17, 2016 at 16:00
  • There would not be a performance hit, but it might lead you code more towards spaghetti land :) If you are using ui-router than when you transition from the searching page to the results page you can pass parameters that don't show in the URL. (Note that if the search terms are not in the URL then a user cannot save a link to a search they have done though). Commented Mar 17, 2016 at 16:06
  • Ah yes, agreed, I just thought of that. I feel its good to allow a user to save a search. Commented Mar 17, 2016 at 16:29