DirectCanvas - AngularJS hooks