<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[json/ ng-init passing data to directive.]]></title><description><![CDATA[<p dir="auto">I am getting a parser error when I try to run this page.</p>
<p dir="auto">What I am trying to do is run a ma-point-query on a specific device that I have listed either in a json object or in the ng-init.  I have it in the ng-init for this code.  But I would like to have it as part of a JSON object.</p>
<p dir="auto">Am I using the {{brackets}} wrong?  I've tried everything I could think of.</p>
<p dir="auto">Also lines 142 - 148 was an attempt to force the name into a md-select and its options.  This didn't work either.  I would like to figure out how to do this as wel, so I can have in my JSON object the list of the device names and it would create the cropdown box for me.</p>
<pre><code>&lt;!-- 
 @copyright 2016 {@link http://proxyem.com|PROXYEM LLC.} All rights reserved.
 @author Christopher Atkins
 --&gt; 

&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;


&lt;!--  USER INPUT SECTION --&gt;
&lt;!--vvvvvvvvvvvvvvvvvvvvvv--&gt;

&lt;!--  Instructions:   
            1)--&gt;

    &lt;!-- BUILDING NAME and assign it to an output variable "bldgName" --&gt;
    &lt;div ng-app="" 

    ng-init="
            
            building= 'admiss';          
            campus= 'mountainside';
            location= 'admiss';
            home= 'home';
            powerDevice= '032 POWER East';
            heatingDevice= '032 GAS East';
            coolingDevice= 'CW Meter';
        "&gt;
    
      
&lt;!--^^^^^^^^^^^^^^^^^^^^^^^^--&gt;
&lt;!-- USER INPUT SECTION   --&gt;


&lt;!--  NO TOUCHY NO TOUCHY NO TOUCHY NO TOUCHY NO TOUCHY --&gt;
&lt;!--  NO TOUCHY NO TOUCHY NO TOUCHY NO TOUCHY NO TOUCHY --&gt;
&lt;!--vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv--&gt;
&lt;!--vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv--&gt;

&lt;!--  SERVER SIDE QUERIES SECTION --&gt;
&lt;!--vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv--&gt;
        &lt;!-- Server side query for points with given device name, and server side sort --&gt;
    
      
    
        &lt;ma-point-query query="{deviceName:deviceName}" sort="'name'" points="powerPoints"&gt;&lt;/ma-point-query&gt;
        &lt;ma-point-query query="{{heatingDevice}}" sort="'name'" points="heatingPoints"&gt;&lt;/ma-point-query&gt;
        &lt;ma-point-query query="{{coolingDevice}" sort="'name'" points="coolingPoints"&gt;&lt;/ma-point-query&gt;
        &lt;ma-point-query query="{{waterDevice}}" sort="'name'" points="waterPoints"&gt;&lt;/ma-point-query&gt;
        &lt;ma-point-query query="{{renewDevice}}" sort="'name'" points="renewPoints"&gt;&lt;/ma-point-query&gt;
        &lt;ma-point-query query="{{weather}}" sort="'name'" points="weatherPoints"&gt;&lt;/ma-point-query&gt;
        
        &lt;ma-get-point-value points="powerPoints" from="from" to="to" rollup="AVERAGE" rollup-interval="15 minutes"&gt;&lt;/ma-get-point-value&gt;

        &lt;!-- POWER DATA  Client side filter by name --&gt;
        &lt;ma-calc input="powerPoints | filter:{name:'KW'} | first" output="kW"&gt;&lt;/ma-calc&gt;
        &lt;ma-calc input="powerPoints | filter:{name:'KW Peak'} | first" output="kWPeak"&gt;&lt;/ma-calc&gt;
        &lt;ma-calc input="powerPoints | filter:{name:'KWH 15 Delta'} | first" output="kWh15Delta"&gt;&lt;/ma-calc&gt;
        &lt;ma-calc input="powerPoints | filter:{name:'KWH MTD Delta'} | first" output="kWhMtdDelta"&gt;&lt;/ma-calc&gt;
        &lt;ma-calc input="powerPoints | filter:{name:'PF'} | first" output="powerFactor"&gt;&lt;/ma-calc&gt;
        &lt;ma-calc input="powerPoints | filter:{name:'PF MIN'} | first" output="powerFactorMin"&gt;&lt;/ma-calc&gt;


        &lt;ma-point-values point="kW" values="kWValues" latest="1"&gt;&lt;/ma-point-values&gt;

        &lt;ma-point-values point="kWPeak" values="kWPeakValues" latest="1"&gt;&lt;/ma-point-values&gt;

        &lt;ma-point-values point="kWh15Delta" values="kWh15DeltaValues" latest="1"&gt;&lt;/ma-point-values&gt;

        &lt;ma-point-values point="kWhMtdDelta" values="kWhMtdValues" latest="1"&gt;&lt;/ma-point-values&gt;

        &lt;ma-point-values point="powerFactor" values="pfValues" latest="1"&gt;&lt;/ma-point-values&gt;

        &lt;ma-point-values point="powerFactorMin" values="pfMinValues" latest="1"&gt;&lt;/ma-point-values&gt;


        &lt;!-- HEATING DATA Client side filter by name --&gt;
    &lt;!--     &lt;ma-calc input="waterPoints | filter:{name:'Volume Rate'} | first" output="vRate"&gt;&lt;/ma-calc&gt;
        &lt;ma-calc input="waterPoints | filter:{name:'Volume Total'} | first" output="vTotal"&gt;&lt;/ma-calc&gt;
 --&gt;
        &lt;!-- COOLING DATA Client side filter by name --&gt;
 &lt;!--        &lt;ma-calc input="waterPoints | filter:{name:'Volume Rate'} | first" output="vRate"&gt;&lt;/ma-calc&gt;
        &lt;ma-calc input="waterPoints | filter:{name:'Volume Total'} | first" output="vTotal"&gt;&lt;/ma-calc&gt;
 --&gt;

        &lt;!-- WATER DATA Client side filter by name --&gt;
   &lt;!--      &lt;ma-calc input="waterPoints | filter:{name:'Volume Rate'} | first" output="vRate"&gt;&lt;/ma-calc&gt;
        &lt;ma-calc input="waterPoints | filter:{name:'Volume Total'} | first" output="vTotal"&gt;&lt;/ma-calc&gt;
 --&gt;
        &lt;!-- WEATHER DATA Client side filter by name --&gt;
   &lt;!--      &lt;ma-calc input="device1points | filter:{name:'Volume Rate'} | first" output="vRate"&gt;&lt;/ma-calc&gt;
        &lt;ma-calc input="device1points | filter:{name:'Volume Total'} | first" output="vTotal"&gt;&lt;/ma-calc&gt;

        
        &lt;ma-point-statistics point="vTotal" from="from" to="to" statistics="statsObj"&gt;&lt;/ma-point-statistics&gt;
 
 
        &lt;ma-point-values point="vRate" values="vRateValues" latest="1"&gt;&lt;/ma-point-values&gt;

        &lt;ma-point-values point="vTotal" values="vTotalValues" latest="1"&gt;&lt;/ma-point-values&gt;

        &lt;ma-point-values point="vTotal" values="rateValues" from="from" to="to" rollup="DELTA" rollup-interval="1 minutes" limit="1000"&gt;&lt;/ma-point-values&gt;
        

        &lt;ma-point-values point="Rate" values="point5Values" latest="1"&gt;&lt;/ma-point-values&gt; --&gt;


    &lt;/div&gt;

&lt;!--^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--&gt;
&lt;!-- SERVER SIDE SERVER QUERIES SECTION   --&gt;

&lt;!--  HTML                        --&gt;
&lt;!--vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv--&gt;
&lt;head&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;meta http-equiv="x-ua-compatible" content="ie=edge"&gt;
    &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;

    &lt;link rel="stylesheet" href="/resources/angular-csp.css"&gt;&lt;/link&gt;
    &lt;link rel="stylesheet" href="../../../../vendor/angular-material/angular-material.css"&gt;
    &lt;link rel="stylesheet" href="../../../../vendor/material-design-icons/iconfont/material-icons.css"&gt;
    &lt;link rel="stylesheet" href="../../../../vendor/mdPickers/mdPickers.css"&gt;
    &lt;link rel ="stylesheet" ng-href="/modules/dashboards/web/beta/styles/vitality.css"&gt;
    &lt;get-json url="/modules/dashboards/web/beta/json/buildingPageData.json" output="buildingPageData"&gt;&lt;/get-json&gt;
    &lt;!-- &lt;pre ng-bind="buildingPageData|json"&gt;&lt;/pre&gt; --&gt;
    &lt;get-json url="/modules/dashboards/web/beta/json/{{building}}.json" output="buildingData"&gt;&lt;/get-json&gt;
    &lt;!-- &lt;pre ng-bind="buildingData|json"&gt;&lt;/pre&gt; --&gt;
    
&lt;/head&gt;

&lt;body layout="column"&gt;
    &lt;div ng-if="appLoading"&gt;
        &lt;span&gt;App is loading..&lt;/span&gt;

    &lt;/div&gt;





    &lt;div ng-cloak layout="column" flex layout-fill&gt;
        &lt;!-- Your content here --&gt;
        &lt;div ng-hide&gt;
        &lt;md-select ng-model="deviceName" ng-init=""&gt;
                            &lt;md-option ng-value="{powerDevice}"&gt;&lt;/md-option&gt;
                        &lt;/md-select&gt;
                        &lt;/div&gt;
        &lt;div&gt;
            &lt;div flex="initial" layout="row" layout-wrap layout-align="end center"&gt;
                &lt;md-card-actions flex="initial" layout="row" layout-wrap&gt;
                    &lt;a ui-sref="dashboard.{{home}}"&gt;&lt;md-button class="vitality-button"&gt;Home&lt;/md-button&gt;&lt;/a&gt;
                    &lt;a ui-sref="dashboard.{{campus}}.{{location}}_p"&gt;&lt;md-button class="vitality-button"&gt;Power&lt;/md-button&gt;&lt;/a&gt;
                    &lt;a ui-sref="dashboard.{{campus}}.{{location}}_h"&gt;&lt;md-button class= "vitality-button"&gt;Heating&lt;/md-button&gt;&lt;/a&gt;
                    &lt;a ui-sref="dashboard.{{campus}}.{{location}}_c"&gt;&lt;md-button class= "vitality-button"&gt;Cooling&lt;/md-button&gt;&lt;/a&gt;
                    &lt;a ui-sref="dashboard.{{campus}}.{{location}}_w"&gt;&lt;md-button class= "vitality-button"&gt;Water&lt;/md-button&gt;&lt;/a&gt;
                &lt;/md-card-actions&gt;
            &lt;/div&gt;

                              
                    &lt;div flex layout="row" layout-align="space-between" layout-padding layout-fill layout-wrap&gt;
                    
                    &lt;md-card flex="30" flex-sm="45" flex-xs="100" class= "cardcolor" &gt;
                    
                        &lt;!-- DEMAND CARD --&gt;
                        &lt;div layout="column"&gt;
                            &lt;md-card-content&gt;
                                &lt;div flex layout="row" layout-align="center"&gt;
                                    &lt;h2 class="home-card"&gt;{{buildingPageData.header1}}&lt;/h2&gt;
                                &lt;/div&gt;
                               &lt;div flex layout="row" flex="100"&gt;
                                    &lt;div layout="column" layout-align="center end" flex="30" hide-xs hide-sm&gt;
                                        &lt;img src={{buildingPageData.imageFile}}{{buildingPageData.demandImage}} ma-tr={{buildingPageData.demandmatr}} alt="test" class="icon-size" &gt;
                                    &lt;/div&gt;
                                    &lt;div layout="column" layout-align="space-around start" flex="70" flex-sm="100" flex-xs="100"&gt;
                                    &lt;h2 class="home-labels"&gt;{{buildingPageData.label1}} &lt;span style="color:#ffffff;"&gt;&lt;ma-point-value point="kW"&gt;&lt;/ma-point-value&gt;&lt;/span&gt;&lt;br&gt;{{buildingPageData.label2}} &lt;span style="color:#ffffff;"&gt;&lt;ma-point-value point="kWPeak"&gt;&lt;/ma-point-value&gt;&lt;/span&gt;&lt;/h2&gt;
                                    &lt;/div&gt;
                                &lt;/div&gt;
                                &lt;div flex layout="row" layout-align="center"&gt;
                                    &lt;P class="home-disclaimer"&gt;{{buildingPageData.disclaimer1}}&lt;/P&gt;
                                &lt;/div&gt;
                            &lt;/md-card-content&gt;
                        &lt;/div&gt;
                    &lt;/md-card&gt;

                    &lt;md-card flex="30" flex-sm="45" flex-xs="100" class= "cardcolor" &gt;
                        &lt;!--MONTHLY ENERGY USE CARD  --&gt;
                        &lt;div layout="column"&gt;
                            &lt;md-card-content&gt;
                                &lt;div flex layout="row" layout-align="center"&gt;
                                    &lt;h2 class="home-card"&gt;{{buildingPageData.header2}}&lt;/h2&gt;
                                &lt;/div&gt;
                                &lt;div flex layout="row" flex="100"&gt;
                                    &lt;div layout="column" layout-align="center end" flex="30" hide-xs hide-sm&gt;
                                        &lt;img src={{buildingPageData.imageFile}}{{buildingPageData.monthlyEnergyImage}} ma-tr={{buildingPageData.monthlyEnergymatr}} alt="test" class="icon-size" &gt;
                                    &lt;/div&gt;
                                    &lt;div layout="column" layout-align="space-around start" flex="70" flex-sm="100" flex-xs="100"&gt;
                                    &lt;h2 class="home-labels"&gt;{{buildingPageData.label3}} &lt;span style="color:#ffffff;"&gt;&lt;ma-point-value point="kWh15Delta"&gt;&lt;/ma-point-value&gt;&lt;/span&gt;&lt;br&gt;{{buildingPageData.label4}} &lt;span style="color:#ffffff;"&gt;&lt;ma-point-value point="kWhMtdDelta"&gt;&lt;/ma-point-value&gt;&lt;/span&gt;&lt;/h2&gt;
                                    &lt;/div&gt;
                                &lt;/div&gt;
                                &lt;div flex layout="row" layout-align="center"&gt;
                                    &lt;P class="home-disclaimer"&gt;{{buildingPageData.disclaimer2}}&lt;/P&gt;
                                &lt;/div&gt;
                            &lt;/md-card-content&gt;
                        &lt;/div&gt;    
                    &lt;/md-card&gt;

                    &lt;md-card flex="30" flex-sm="45" flex-xs="100" class= "cardcolor" &gt;
                        &lt;!-- POWER QUALITY CARD --&gt;
                        &lt;div layout="column"&gt;
                            &lt;md-card-content&gt;
                                &lt;div flex layout="row" layout-align="center"&gt;
                                    &lt;h2 class="home-card"&gt;{{buildingPageData.header3}}&lt;/h2&gt;
                                &lt;/div&gt;
                                &lt;div flex layout="row" flex="100"&gt;
                                    &lt;div layout="column" layout-align="center end" flex="30" hide-xs hide-sm&gt;
                                        &lt;img src={{buildingPageData.imageFile}}{{buildingPageData.qualityImage}} ma-tr={{buildingPageData.qualitymatr}} alt="test" class="icon-size" &gt;
                                    &lt;/div&gt;
                                    &lt;div layout="column" layout-align="space-around start" flex="70" flex-sm="100" flex-xs="100"&gt;
                                    &lt;h2 class="home-labels"&gt;{{buildingPageData.label5}} &lt;span style="color:#ffffff;"&gt;&lt;ma-point-value point="powerFactor"&gt;&lt;/ma-point-value&gt;&lt;/span&gt;&lt;br&gt;{{buildingPageData.label6}} &lt;span style="color:#ffffff;"&gt;&lt;ma-point-value point="powerFactorMin"&gt;&lt;/ma-point-value&gt;&lt;/span&gt;&lt;/h2&gt;
                                    &lt;/div&gt;
                                &lt;/div&gt;
                                &lt;div flex layout="row" layout-align="center"&gt;
                                    &lt;P class="home-disclaimer"&gt;{{buildingPageData.disclaimer3}}&lt;/P&gt;
                                &lt;/div&gt;
                            &lt;/md-card-content&gt;
                        &lt;/div&gt; 
                    &lt;/md-card&gt;

                    &lt;md-card flex="30" flex-sm="45" flex-xs="100" class= "cardcolor" &gt;
                        &lt;!-- WEATHER CARD --&gt;
                        &lt;div layout="column"&gt;
                            &lt;md-card-content&gt;
                                &lt;div flex layout="row" layout-align="center"&gt;
                                    &lt;h2 class="home-card"&gt;{{buildingPageData.header4}}&lt;/h2&gt;
                                &lt;/div&gt;
                                &lt;div flex layout="row" flex="100"&gt;
                                    &lt;div layout="column" layout-align="center end" flex="30" hide-xs hide-sm&gt;
                                        &lt;img src={{buildingPageData.imageFile}}{{buildingPageData.weatherImage}} ma-tr={{weathermatr}} alt="test" class="icon-size" &gt;
                                    &lt;/div&gt;
                                    &lt;div layout="column" layout-align="space-around start" flex="70" flex-sm="100" flex-xs="100"&gt;
                                    &lt;h2 class="home-labels"&gt;{{buildingPageData.label7}} &lt;span style="color:#ffffff;"&gt;&lt;ma-point-value point-xid={{buildingData.bldgTempPnt}}&gt;&lt;/ma-point-value&gt;&lt;/span&gt;&lt;br&gt;{{buildingPageData.label8}} &lt;span style="color:#ffffff;"&gt;&lt;ma-point-value point-xid={{buildingData.bldgCondPnt}}&gt;&lt;/ma-point-value&gt;&lt;/span&gt;&lt;/h2&gt;
                                    &lt;/div&gt;
                                &lt;/div&gt;
                                &lt;div flex layout="row" layout-align="center"&gt;
                                    &lt;P class="home-disclaimer"&gt;{{buildingPageData.disclaimer1}}&lt;/P&gt;
                                &lt;/div&gt;
                            &lt;/md-card-content&gt;
                        &lt;/div&gt; 
                    &lt;/md-card&gt;

                    &lt;md-card flex="30" flex-sm="45" flex-xs="100" class= "cardcolor" hide-xs hide-sm&gt;
                        &lt;!-- BUILDING CARD --&gt;
                        &lt;div layout="column"&gt;
                            &lt;md-card-content&gt;
                                &lt;div flex layout="row" layout-align="center"&gt;
                                    &lt;h2 class="home-card"&gt;{{buildingData.bldgName}}&lt;/h2&gt;
                                &lt;/div&gt;
                                &lt;div flex layout="column" layout-align="center center" &gt;
                                    &lt;div flex&gt;
                                        &lt;img src={{buildingPageData.custImageFile}}{{buildingData.bldgImage}} ma-tr={{buildingData.bldgAcro}} alt="test" class="building-image" &gt;
                                    &lt;/div&gt;
                                &lt;/div&gt;
                            &lt;/md-card-content&gt;
                        &lt;/div&gt;     
                    &lt;/md-card&gt;

                    &lt;md-card flex="30" flex-sm="45" flex-xs="100" class= "cardcolor"&gt;
                        &lt;!-- BTU CARD --&gt;
                        &lt;div layout="column"&gt;
                            &lt;md-card-content&gt;
                                &lt;div flex layout="row" layout-align="center"&gt;
                                    &lt;h2 class="home-card"&gt;{{buildingPageData.header5}}&lt;/h2&gt;
                                &lt;/div&gt;
                                &lt;div flex layout="row" flex="100"&gt;
                                    &lt;div layout="column" layout-align="center end" flex="30" hide-xs hide-sm&gt;
                                        &lt;img src={{buildingPageData.imageFile}}{{buildingPageData.btuImage}} ma-tr={{buildingPageData.btumatr}} alt="test" class="icon-size" &gt;
                                    &lt;/div&gt;
                                    &lt;div layout="column" layout-align="space-around start" flex="70" flex-sm="100" flex-xs="100"&gt;
                                        &lt;h2 class="home-labels"&gt;{{buildingPageData.label9}} &lt;span style="color:#ffffff;"&gt;&lt;ma-point-value point-xid={{buildingData.bldgChwBtuPnt}}&gt;&lt;/ma-point-value&gt;&lt;/span&gt;&lt;br&gt;{{buildingPageData.label10}} &lt;span style="color:#ffffff;"&gt;&lt;ma-point-value point-xid={{buildingData.bldgHtwBtuPnt}}&gt;&lt;/ma-point-value&gt;&lt;/span&gt;&lt;/h2&gt;
                                    &lt;/div&gt;
                                &lt;/div&gt;
                                &lt;div flex layout="row" layout-align="center"&gt;
                                        &lt;P class="home-disclaimer"&gt;{{buildingPageData.disclaimer2}}&lt;/P&gt;
                                &lt;/div&gt;
                            &lt;/md-card-content&gt;
                        &lt;/div&gt; 
                    &lt;/md-card&gt;

            &lt;/div&gt;
        &lt;/div&gt;

    &lt;/div&gt;


&lt;/body&gt;

&lt;/html&gt;
</code></pre>
]]></description><link>https://forum.mango-os.com/topic/2546/json-ng-init-passing-data-to-directive</link><generator>RSS for Node</generator><lastBuildDate>Sun, 13 Sep 2026 17:19:00 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/2546.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 16 Nov 2016 09:06:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to json/ ng-init passing data to directive. on Wed, 16 Nov 2016 20:26:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/atkins.chrisw" aria-label="Profile: atkins.chrisw">@<bdi>atkins.chrisw</bdi></a> said in <a href="/topic/2546/json-ng-init-passing-data-to-directive/3">json/ ng-init passing data to directive.</a>:</p>
<blockquote>
<p dir="auto">Thanks Jared.  That worked.  But the problem now is that the values are incorrect.  And on one of them, it shows it as disabled.</p>
<p dir="auto">If I use a standard drop down box with the device name as the input.  I get the right values.  Im trying to not have to hand enter each list selector.</p>
</blockquote>
<p dir="auto">I'm really not following what worked and what didn't.</p>
<blockquote>
<p dir="auto">Is it not possible to make the json object go directly into the ma-point-query.</p>
</blockquote>
<p dir="auto">It definitely is.</p>
<blockquote>
<p dir="auto">so instead of :  &lt;ma-point-query query="{deviceName:deviceName}" sort="'name'" points="powerPoints"&gt;&lt;/ma-point-query&gt;</p>
<p dir="auto">its more like : &lt;ma-point-query query="{deviceName:{powerDevice}}" sort="'name'" points="powerPoints"&gt;&lt;/ma-point-query&gt;</p>
</blockquote>
<p dir="auto">The first syntax is correct. Assuming you have a variable named deviceName on your scope. The second syntax is entirely incorrect. Do you want this maybe?</p>
<pre><code> &lt;ma-point-query query="{deviceName:powerDevice}" sort="'name'" points="powerPoints"&gt;&lt;/ma-point-query&gt;
</code></pre>
]]></description><link>https://forum.mango-os.com/post/13274</link><guid isPermaLink="true">https://forum.mango-os.com/post/13274</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Wed, 16 Nov 2016 20:26:18 GMT</pubDate></item><item><title><![CDATA[Reply to json/ ng-init passing data to directive. on Wed, 16 Nov 2016 17:07:54 GMT]]></title><description><![CDATA[<p dir="auto">Thanks Jared.  That worked.  But the problem now is that the values are incorrect.  And on one of them, it shows it as disabled.</p>
<p dir="auto">If I use a standard drop down box with the device name as the input.  I get the right values.  Im trying to not have to hand enter each list selector.</p>
<p dir="auto">Is it not possible to make the json object go directly into the ma-point-query.</p>
<p dir="auto">so instead of :  &lt;ma-point-query query="{deviceName:deviceName}" sort="'name'" points="powerPoints"&gt;&lt;/ma-point-query&gt;</p>
<p dir="auto">its more like : &lt;ma-point-query query="{deviceName:{powerDevice}}" sort="'name'" points="powerPoints"&gt;&lt;/ma-point-query&gt;</p>
]]></description><link>https://forum.mango-os.com/post/13263</link><guid isPermaLink="true">https://forum.mango-os.com/post/13263</guid><dc:creator><![CDATA[atkins.chrisw]]></dc:creator><pubDate>Wed, 16 Nov 2016 17:07:54 GMT</pubDate></item><item><title><![CDATA[Reply to json/ ng-init passing data to directive. on Wed, 16 Nov 2016 16:31:41 GMT]]></title><description><![CDATA[<p dir="auto">@atkins-chrisw You have the syntax for <code>ma-point-query</code> correct on the first line, please take a look at the API documentation.</p>
<p dir="auto">As for the <code>md-select</code> you almost have it correct, just remove the braces.</p>
<p dir="auto">I think you are getting confused about interpolation using double curly braces i.e. <code>{{someVariable}}</code> and passing objects through to a directive as an expression i.e. <code>my-attr="{property: value}"</code></p>
<p dir="auto">Please read this for a quick explaination - <a href="http://www.w3schools.com/angular/angular_expressions.asp" rel="nofollow ugc">http://www.w3schools.com/angular/angular_expressions.asp</a><br />
Also these may be helpful -<br />
<a href="https://docs.angularjs.org/guide/interpolation" rel="nofollow ugc">https://docs.angularjs.org/guide/interpolation</a><br />
<a href="https://docs.angularjs.org/guide/expression" rel="nofollow ugc">https://docs.angularjs.org/guide/expression</a></p>
]]></description><link>https://forum.mango-os.com/post/13261</link><guid isPermaLink="true">https://forum.mango-os.com/post/13261</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Wed, 16 Nov 2016 16:31:41 GMT</pubDate></item></channel></rss>