I have an issue where I believe the query attribute in ma-point-query is pulling data from my controller before it has a chance to initialize. Here is the HTML
<span>{{$ctrl.devName}}</span><br><span>{{devPoints[1].deviceName}}</span>
<ma-point-query id="d61e8607-03c8-48ad-965a-96a1d76130e9" query="{deviceName:$ctrl.devName}" promise="promise" points="devPoints"></ma-point-query>
The Spans are included for testing purposes.
In my controller, I'm binding to a data point and then trying to pull it's deviceName back and use it in the query filter. Thus creating a filtered list of points for that device. Right now the query seems to be binding before the controller is updating the deviceName. So my point list actually contains multiple devices. All other bindings to 'devName' seems to be fine. Both of these spans should say the same thing.
I've tried many ways including binding to other locations. It just seems that the query isn't updating once the binding completes. Any ideas? Or am I missing something?