Separated data call from directive