search

Home  >  Q&A  >  body text

angular.js - angularjs ng-model

<p ng-if="info.times>0">Resend verification code(<span ng-model="info.times">{{info.times}}</span> )</p>

Why does the value of {{info.times}} remain unchanged at 60, while the value I print keeps decreasing. (Printed using console.log())

大家讲道理大家讲道理2821 days ago570

reply all(2)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-15 17:03:10

    ng-model is added to the form element, you can write directly like this <span>{{info.times}}</span>

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-15 17:03:10

    What about the code in the controller?

    reply
    0
  • Cancelreply