I keep getting the following error:
Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting! Watchers fired in the last 5 iterations:
[[{"msg":"person.kind.match('customer')","newVal":["customer"],"oldVal":["customer"]}],[{"msg":"person.kind.match('customer')","newVal":["customer"],"oldVal":"<>"}],[{"msg":"person.kind.match('customer')","newVal":["customer"],"oldVal":"<>"}],[{"msg":"person.kind.match('customer')","newVal":["customer"],"oldVal":"<>"}],[{"msg":"person.kind.match('customer')","newVal":["customer"],"oldVal":"<>"}]]
The code which is causing this issue is below:
%p{ng: {if: "person.kind.match('partner')" } } Some text
.btn{ ng: { if: "person.kind.match('customer')" } } Some other text
//more button here
I have looked at existing questions and all of them are different. My issue is caused by the match operator. How can I use the test operator here.
Note: I am not changing objects/models during the render of the view. I am just using the match operator