I want to use $index of ng-repeat in same tag line
<p>I want to use $index of ng-repeat in same tag line</p>

<pre><code>&lt;uib-tabset active="activeameneties" justified="true" class="resp-tabs-list hor_1 classforfont"&gt;
    &lt;uib-tab ng-repeat="amenity in prop.all_amenities" class="ami_tabs" index=" " heading="{{amenity.amenity}}" index="{{amenity.id}}"&gt; 
        &lt;div class="resp-tabs-container hor_1" &gt;
            &lt;div class="extMar"&gt;
                &lt;br/&gt;
                &lt;div class="row"&gt;
                    &lt;div class="col-lg-3 col-md-4 col-sm-6 col-sm-6  col-xs-12" ng-repeat="sub_amenity in amenity.subAmenities"&gt;
                        &lt;div class="prop-checkbox"&gt;
                            &lt;div class="checkbox checkbox-info checkbox-inline"&gt;
                                &lt;input id="Smoking-1" class="checkbox-custom" name="Smoking-1" type="checkbox" value={{sub_amenity.id}}&gt;
                                &lt;label for="Smoking-1" class="checkbox-custom-label"&gt;{{sub_amenity.amenity}}&lt;/label&gt;
                            &lt;/div&gt;
                        &lt;/div&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
            &lt;/div&gt;
        &lt;/div&gt;
    &lt;/uib-tab&gt;
&lt;/uib-tabset&gt;
</code></pre>