<?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[DeviceNameList.js issue]]></title><description><![CDATA[<p dir="auto">Found a bug I think.. when not using Angular Material, the device name list directive wasn't working. The optionsExpr when using &lt;select&gt; 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..</p>
<pre><code>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 '&lt;md-select md-on-open="onOpen()"&gt;&lt;md-option ng-value="deviceName" ng-repeat="' + optionsExprmd + '" ng-bind="deviceName"&gt;&lt;/md-option&gt;&lt;/md-select&gt;';
          }

          return '&lt;select ng-options="' + optionsExpr + '"&gt;&lt;/select&gt;';
</code></pre>
]]></description><link>https://forum.mango-os.com/topic/2641/devicenamelist-js-issue</link><generator>RSS for Node</generator><lastBuildDate>Sun, 15 Nov 2026 03:09:41 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/2641.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 25 Jan 2017 23:36:33 GMT</pubDate><ttl>60</ttl></channel></rss>