$parent.publishPost or whatever with no arguments and $data is implicitly passed.