I'm trying to pass a dynamic query string into a directive that will filter the results that come back. So my code looks like this:
So say in my controller I have this:
var ctrlAs = this;
ctrlAs.location = "USA";
then in my html I have a directive:
<directive filter="location=ctrlAs.location">
THen in my directive i'm bringing in location like "=filter". I would expect the output in the directive to be "location=USA", but instead the output in the directive is just "USA".
Any suggestions on what i'm doing wrong?