Skip to content Skip to sidebar Skip to footer

How To Understand The Console Error Messages In Angular Js? Any Tools?

I am new to Angular JS.My first question how to understand the error messages from console in Angular JS. I have written this snippet of code for matching passwords. It throws erro

Solution 1:

I find that the chrome extension Angular Batarang is awesome for debugging Angular JS:

https://chrome.google.com/webstore/detail/angularjs-batarang/ighdmehidhipcmcojjgiloacoafjmpfk?hl=en

It adds another tab in the developer tools that allows you to check apps etc.

Hope it helps.

Solution 2:

If it was an error in your file than angular will give you the position of the problem code in the 1st line of error (last 2 digits). The following lines are call stack. If it was an error you caused in angular code than the first line is a link to angular site that describes the error.

https://docs.angularjs.org/error/$rootScope/infdig - this is your error. You somehow causing an infinite loop in the digest cycle.

EDIT: and as JanR suggested use Chrome with Batarang it is much more suited for angular

Post a Comment for "How To Understand The Console Error Messages In Angular Js? Any Tools?"