<p dir="auto">In AngularJS, <code class="notranslate">ng-repeat</code> can iterate <code class="notranslate">Object</code> as key-value map.</p>
<p dir="auto"><a href="https://docs.angularjs.org/api/ng/directive/ngRepeat" rel="nofollow">https://docs.angularjs.org/api/ng/directive/ngRepeat</a></p>
<p dir="auto"><code class="notranslate">&lt;div ng-repeat="(key, value) in myObj"&gt; ... &lt;/div&gt;</code></p>
<p dir="auto">In Angular2, <code class="notranslate">ngFor</code> doesn't support it. <code class="notranslate">ngFor</code> can iterate only an array.</p>
<p dir="auto"><a href="https://angular.io/docs/ts/latest/api/common/NgFor-directive.html" rel="nofollow">https://angular.io/docs/ts/latest/api/common/NgFor-directive.html</a></p>
<p dir="auto"><code class="notranslate">&lt;li *ngFor="#item of items; #i = index"&gt;...&lt;/li&gt;</code></p>
<p dir="auto">This mismatch makes migrations a little difficult.</p>
<p dir="auto">I think <code class="notranslate">ngFor</code> also support <code class="notranslate">Object</code> iteration as well as <code class="notranslate">ng-repeat</code>.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[   ] bug report =&gt; search github for a similar issue or PR before submitting
[ x ] feature request
[   ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[   ] bug report =&gt; search github for a similar issue or PR before submitting
[ x ] feature request
[   ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
It is currently impossible to use [required] and [disabled] in reactive forms</p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
In many forms, some fields depend on other fields. With reactive forms it makes it extremely difficult and verbose to require or disable a field conditionally to another field</p>
<p dir="auto"><strong>Angular version:</strong><br>
2.1.0</p>
<p dir="auto">I have read <a href="https://angular.io/docs/ts/latest/cookbook/form-validation.html" rel="nofollow">here</a> that</p>
<blockquote>
<p dir="auto">A future version of reactive forms will add the required HTML validation attribute to the DOM element (and perhaps the aria-required attribute) when the control has the required validator function.</p>
</blockquote>
<p dir="auto">Does it mean that [required] and [disabled] will be supported in future versions? It is important for users to understand the limitations of reactive forms so they can take the best decision (reactive vs template) based on their (future) needs.</p>