I'm working on an Angular app that needs to link to a fixed (external) route with some query params that are set on the Angular page itself. I'd like to provide some sort of nice data-binding in my Angular HTML, like:
<a href="http://www.api.com/query?param={{value}}&flag={{check}}">Link</a>
However, all my query parameters are optional. This is easily handled within an Angular app itself, using something like
$location.path('/query').search({param: value, flag: check});
Is there any way I can get the benefits of this declarative style when I just want to format a text link?