use ng-change to achieve real-time display