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 8960769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:44:01+00:00 2026-06-15T15:44:01+00:00

I have an chtml page using Angular Js that contains list with objects from

  • 0

I have an chtml page using Angular Js that contains list with objects from database
but it takes a long time to load the data.
how can I load just 10 objects and display them, and than continue to load the data
and show the rest of data in Angular Js????

  • 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-15T15:44:02+00:00Added an answer on June 15, 2026 at 3:44 pm

    It sounds like you have a lot of data that you want to slowly load to the front end so you don’t have to wait. The only method I can think of for adding data periodically would be a setInterval.

    the key would be to create a new variable

    $scope.displayObjects = []
    

    That you could contiously append to like so

    for(var x = currentIndex; x < currentIndex + step && x < $scope.objects.length; x++){
        $scope.displayObjects.push($scope.objects[x]);                        
    }
    

    Then just set up an interval to continuously call that. You will also need to make use of

    $scope.$apply() 
    

    to tell angular to re-apply itself (http://docs.angularjs.org/api/ng.$rootScope.Scope#$apply).

    http://jsfiddle.net/A9uND/20/ You can adjust how much it loads with each step via the step variable.

    Next time include a jsfiddle (or something similar) so it’s easier to assist you.

    While the method outlined above will work, I would suggest tracking how much you can see and then only loading the relevant ones. As you scroll add more along the way.

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

Sidebar

Related Questions

I have a Windows Azure web role that contains a web site using ASP.NET
I have 2 forms in my myPage.chtml page as follows: @using (Html.BeginForm(Tests1, Test, FormMethod.Post,
I have Results page that contains an signup form. I'm trying to use client-side
I have the dropdown list like this <?php echo $form->dropdownList($customers,'customer_name', CHtml::listData(Customers::model()->findAll(), 'id', 'customer_name'), array(
I have a list of objects which uses paging in my home > index.cshtml.
I have a partial view that upon adding an item to the database needs
We have a ASP.NET MVC 3 application that uses unobtrusive jQuery validation. The page
I am using an mvc application and in _Layout.cshtml page I have some javascript
I'm having nice first days using Yii but have some troubles with getting things
I have a drop down list (yii framework) , that i would like to

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.