I have written a filter and it just prints the content as it is on the page (Specifically on IE).
like the following gets printed on the page
However it works when
1) Opened in Chrome browser
2) When I run it on IE in debug mode.
I am trying to pin point the issue by thinking like
1) If it is working in debug mode, that means the code written for filter is correct
2) Also if it is working in other browsers, that might mean that the code doesn't specifically works for IE.
Bear Bibeault wrote:Usually, when something works in debug mode, and does not in non-debug mode, it's a sign that there is a timing issue.
Well, I was not able to find the root cause of it yet.
Timing issues are deucedly hard to debug. I suggest you start using the browser debugger to add logging and set breakpoints to try and find out what's happening out of order. Be sure you are following the AngularJS patterns. AngularJS, in particular, is very picky and opinionated on how you structure the code.