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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:06:20+00:00 2026-06-18T11:06:20+00:00

Using BreezeJS with AngularJS gives errors. For example when using ‘filter’ in an ng-repeat

  • 0

Using BreezeJS with AngularJS gives errors. For example when using ‘filter’ in an ng-repeat the console reports: running out of stack space.

Steps to reproduce

  1. Take the Todo-Angular BreezeJS sample & open in VS 2012.
  2. In index.html add right before the <ul>


    <div>
    <input ng-model="query" type="search" placeholder="search" />
    </div>

  1. Add the following code to the data-ng-repeat on the li element


    <li data-ng-repeat="item in items | filter:query">

The filter:query should filter the list based upon the text in the input
but it doesn’t.
In IE 10 the console reports “running out of stack space”.
In Chrome the console reports”Range Error”:

(anonymous function) angular.js:5582
(anonymous function) angular.js:4679
Scope.$digest angular.js:7739
Scope.$apply angular.js:7926
listener angular.js:11228
v.event.dispatch jquery-1.8.3.min.js:2
o.handle.u

When you use angular.copy(src, dest); where src is created by BreezeJS I see
another stack_overflow error.

  • 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-18T11:06:22+00:00Added an answer on June 18, 2026 at 11:06 am

    That won’t work because you’re asking Angular to match the search text to every property of the TodoItem.

    A Breeze entity’s properties include the entityAspect which has a property called entity that points back to the TodoItem instance … and around you go until the stack overflows (pun intended).

    You need to use a filter function that does specific comparisons. Try this:

    In Index.html

    <div>
      <input data-ng-model="searchText" type="Search" placeholder="search" />
    </div>
    <ul>
        <li data-ng-repeat="item in items | filter:itemFilter">
        ... etc. ...
    

    In controller.js

    $scope.searchText = "";
    
    // Beware: this is called a lot!
    $scope.itemFilter = function (todoItem) {
        var searchText = $scope.searchText;
        // if there is search text, look for it in the description; else return true
        return searchText ?
            -1 != todoItem.Description.toLowerCase().indexOf(searchText.toLowerCase()) :
            true;
    };
    

    Works like a charm on my machine 🙂

    p.s.: your mishap with angular.copy() has the same cause … it does a depth copy of every property and entities tend to have circular references.

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

Sidebar

Related Questions

I queried my database using Breezejs using the following code: viewModel = { products
I was wondering whether or not BreezeJS is compatible when using other technologies other
Using the following as an example (with $db being a previously created database connection
Using Tsql, how can I find out when MS SQL server was installed?
I am using Breezejs for client JavaScript. I am not sure how to get
I am looking in to using breezejs and have a few questions in terms
using this code: Java Server side: ... out = new PrintWriter(this.client.getOutputStream(), true); ... public
Using the new mvc4 now gives us access to use facebook oauth otb. I
Using the Exiv2 library to write some exif tags to an image i'm running
Using this as an example, how could I scale the graphic such that it's

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.