1

I am using angular2 with typescript in Visual Studio 2015.I am getting exception RangeError: Maximum call stack size exceeded in angular2

Why i am getting this exception and how can i solve this.

5
  • What version of angular2 are you using? When did it go wrong, what is the code, etc Commented Jul 15, 2016 at 8:02
  • i am using "angular2": "2.0.0-beta.8", In my page there are 50 text box .At the time of render it getting exception. Commented Jul 15, 2016 at 8:13
  • Could you try using the latest RC? There was a known bug in the earlier versions of angular2 which caused this. Commented Jul 15, 2016 at 8:18
  • Should i use angular RC1 to solve this issue? Commented Jul 15, 2016 at 12:54
  • 1
    I would just go for the latest version if that is possible Commented Jul 15, 2016 at 12:58

2 Answers 2

13

Might not have been your issue, but worth mentioning. I was getting the same error with RC5. It took a bit before I realized that it stopped when I commented out one of my modules with the selector "footer". Well my footer.component.html template file of course uses the HTML5 <footer> tag. So because my selector was an HTML tag it was in infinite recursion. Seems obvious to think about now, but caused me some issues.

Sign up to request clarification or add additional context in comments.

2 Comments

you are a legend
you saved my life :)
1

I had the same problem. I found out that in my component.html, I was calling the same selector that call my component.html, hence recursivity.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.