Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9144985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:24:08+00:00 2026-06-17T10:24:08+00:00

AngularJs source: <html ng-app> <body ng-controller=Controller> <div ng-init=numbers=[11,22,33]> <div ng-repeat=n in numbers> <input type=text

  • 0

AngularJs source:

<html ng-app>
  <body ng-controller="Controller">
    <div ng-init="numbers=[11,22,33]">
       <div ng-repeat="n in numbers">
         <input type="text" ng-model="n"/> [{{n}}]
       </div>
    </div>
    <script>
        function Controller($scope) {}
    </script>
  </body>
</html>

When I change the value of the inputs, the text on the right won’t be updated. Where is wrong?

The live demo is here: http://jsfiddle.net/Freewind/TZwxy/

You can change the value in the inputs and see.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T10:24:09+00:00Added an answer on June 17, 2026 at 10:24 am

    Try with an array of objects instead:

    function Controller($scope) {
      $scope.numbers = [{value: 11 }, {value: 22 }, {value: 33 }];
    }
    
    <html ng-app>
      <body ng-controller="Controller">
        <div>
           <div ng-repeat="n in numbers">
             <input type="text" ng-model="n.value"/> [{{n.value}}]
           </div>
        </div>
      </body>
    
    </html>
    

    See jsFiddle.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Code in html.haml in Rails using AngularJS %table %tbody{:ng-init => my_model=#{@current_user_things.to_json}} %tr{:ng-repeat => row
In my page AngularJS' html templates are bound to the controller's variables as usual.
I am having the same issue mentioned here <input type=text class=span3 style=margin: 0 auto;
Using AngularJS if I set a simple input text box value to something like
How would I use AngularJS ng-repeat to display the following HTML (Twitter Bootstrap Scaffolding)?
I'm trying to create my first app with AngularJS. It looks neat, but there's
Normally in all examples/source code of AngularJS modifications of scope is done in controllers.
I use both Bootstrap and AngularJS in my web app. I'm having some difficulty
I have an angularjs web app which has a view with the following basic
I have a Rails/AngularJS app which works fine in local development environment. However, when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.