Refactored ttApiErrorDisplay to use Angular instead of jQuery