fixed up an external button with jquery

in order to access the angular scope and update it