The One Direction star and Ariana both partied to early hours after Ariana's performance at the O2 Arena.