を中止私は、次のエラーを取得しておいてください。
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":"<>"}]]
この問題を引き起こしているコードは以下の通りです:
%p{ng: {if: "person.kind.match('partner')" } } Some text
.btn{ ng: { if: "person.kind.match('customer')" } } Some other text
//more button here
私は、既存の質問を見ていると、それらのすべてが異なっています。私の問題は、マッチ演算子によって引き起こされます。ここでテストオペレータを使用するにはどうすればいいですか?
注:ビューのレンダリング中にオブジェクト/モデルを変更していません。私はちょうど一致する演算子を使用しています
PLSは、ビューのコード '.btnにそのすでにそこにあなたの' match'機能 –
を投稿これは、 ' – xeon131
他のいくつかのテキストを{NG: "person.kind.match( '顧客')"}:{}場合時計を放つと、次の呼び出しで新しい値が返されます(バインドされている関数は、おそらく等価ではありません) – shaunhusain