fix(datacontexts): change to angular factory