I'm building a front-end that loads a list of content. Think reddit or stackoverflow. Like those sites I want to load different content based on different parameters. For example if a users clicks a meta-tag link on an item, that user will get a list of content sharing that meta-tag. Or if a user searches a keyword they will get content based on that search. I already have separate API calls for getting json based on a tag, a search keyword, and a default route if the user is just seeing what's out there. I also have a mostly working way of handling this in angular but it has an issue and I assume there is a better way to handle this. Now for the code I have. What I'm sharing is setup to work with either the default behavior or a meta-tag link. Search should be easy to extrapolate from this but I haven't bothered yet.I'm building a front-end that loads a list of c