Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
DeviceNameList.js issue
-
Found a bug I think.. when not using Angular Material, the device name list directive wasn't working. The optionsExpr when using <select> seems to need a different input.. adding 'deviceName for' in the optionsExpr seemed to fix it. I added another variable for the material design below..
template: function(element, attrs) { var optionsExprmd = 'deviceName in deviceNames track by $index'; var optionsExpr = 'deviceName for deviceName in deviceNames track by $index'; if ($injector.has('$mdUtil')) { return '<md-select md-on-open="onOpen()"><md-option ng-value="deviceName" ng-repeat="' + optionsExprmd + '" ng-bind="deviceName"></md-option></md-select>'; } return '<select ng-options="' + optionsExpr + '"></select>';