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

  • SEARCH
  • Home
  • 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 8918939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T05:52:43+00:00 2026-06-15T05:52:43+00:00

I have begun with the code from angular-seed , and am slowly changing it.

  • 0

I have begun with the code from angular-seed, and am slowly changing it. My goal is to make a simple spreadsheet application. In angular-seed/app/index.html I added the following code to begin with:

<input type="text" ng-model="KID" placeholder="ID goes here">

<input type="text" ng-model="DESC" placeholder="Description goes here">

<input type="text" ng-model="DDD" placeholder="Drop Dead Date goes here">

That did what I wanted, but I thought I would try to take what I have learned from the John Lindquist tutorial and apply it. So I changed the above:

<span ng-repeat="entryField in entryFields">

<input type="text" ng-model="entryField.ngmodel" placeholder="entryField.pHolder">

</span>

and I added the following controller to angular-seed/app/js/controllers.js

function DataEntryCtrl($scope) {
   $scope.entryFields = [
       {pHolder:'ID goes here',ngmodel:'KID'},
       {pHolder:'Description goes here',ngmodel:'DESC'},
       {pHolder:'Drop Dead Date goes here',ngmodel:'DDD'}
   ];

}

And now I only get one text field with the literal string entryField.pHolder. I first suspected I wasn’t using the right syntax for the ng-model element. I’m following the pattern from the tutorial, so I am confident that is correct. Then, I made sure I closed the <span> properly, and I believe that checks out. I’m new to not only angular-js, but javascript as well (plus only passingly familiar with html), so I suspect this is where the problem lies. I’m not sure how to pin-point the problem. Is it glaring? Could someone point out what I’ve done wrong? Below is the entire index.html for reference.

<!doctype html5>
<html lang="en" ng-app="myApp">
<head> 
  <meta charset="utf-8">
  <title>SpreedSheet Demo</title>
  <link rel="stylesheet" href="css/app.css"/>
</head>
<body>
<div ng-controller="DataEntryCtrl">

   <span ng-repeat="entryField in entryFields">
      <input type="text" ng-model="entryField.ngmodel" placeholder="entryField.pHolder">
   </span>
   <div ng-view></div>
</div>

  <script src="lib/angular/angular.js"></script>
  <script src="js/app.js"></script>
  <script src="js/services.js"></script>
  <script src="js/controllers.js"></script>
  <script src="js/filters.js"></script>
  <script src="js/directives.js"></script>
</body>
</html>
  • 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-15T05:52:45+00:00Added an answer on June 15, 2026 at 5:52 am

    You should replace this:

    placeholder="entryField.pHolder"
    

    with:

    placeholder="{{entryField.pHolder}}"
    

    I am not sure what do you use the tag “ng-model” for in this case.
    But it should work then.

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

Sidebar

Related Questions

I have begun creating a wpf mvvm app. It seems a vital ingredient to
Per a great answer from another question I have begun mounting global resources (css/js/images)
I have recently begun to use the EF v4 Code Only library for some
I have a simple application where a user clicks on an area, and the
I'm fascinated by Node JS and have begun diving in, however, coming from a
I have just begun Rails 3. I have generated the below code using the
I have some code from the net reading hyperspectral data (image, so lots of
I have begun using Eclipse code templates and am loving 'em! But for existing
Below I have a snippet of code from a stored procedure I'm trying to
I am trying to port some code from Delphi to C# and I have

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.