search

Home  >  Q&A  >  body text

angular.js - angularJs's ng-repeat

angularJs's ng-repeat loops through a group of <input> controls, adding a string "xxx" between each control. How to add this string?

迷茫迷茫2827 days ago540

reply all(3)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-15 17:07:19

    <p class="list">
        <p ng-repeat="item in list">
            <input type="text" ng-model="item.name"/>
            <span>{{item.title}}</span>
        </p>
    </p>

    reply
    0
  • 黄舟

    黄舟2017-05-15 17:07:19

    <ng-repeat-start='item in list'></ng-repeat-start>
        <span ng-bind='item.title' />
        <input type='text' ng-model='item.name' />
    <ng-repeat-end></ng-repeat-end>

    reply
    0
  • 某草草

    某草草2017-05-15 17:07:19

    Owner, please post the code of the final effect you want to output and have a look

    reply
    0
  • Cancelreply