AngularJS wrapper of XDMessage