あなたはDirtyCheckProperty
年代を上書きすることができますログを追加する方法をサブスクライブ:
import {DirtyCheckProperty} from 'aurelia-binding';
import * as LogManager from 'aurelia-logging';
const logger = LogManager.getLogger('my-app');
DirtyCheckProperty.prototype.standardSubscribe = DirtyCheckProperty.prototype.subscribe;
DirtyCheckProperty.prototype.subscribe = function(context, callable) {
this.standardSubscribe(context, callable);
logger.warn(`'${this.obj.constructor.name}.${this.propertyName}' is being dirty checked`, this.obj);
}
メッセージがコンソールに次のようになります。
はここで実行していますサンプルアプリ:
https://gist.run/?id=2c863d48a2a711b8c5f93df2bb7c4a3b