Angular json-api implementation