A directive which can load data from local or from the server