Added angular logic to post note