Open JohnTigue opened 8 years ago
Early prototyping of code used angular-dsv. Clearly this violated the above implied architecture. Next rev should have CSV parsing happening in the outbreak_time_series_reader module. The Angularization should happen outside that module. Angular's $http or $resource should load the data and use the outbreak_time_series_reader module to model the data.
The following two cases should be enabled:
Maybe this thing should just be called OutbreakReader.
The outbreak_time_series_reader module should be vanilla ES5 for maximal reusability in old browsers and even in context which where there is no browsers.
Separately there should be an Angular data service which uses the outbreak_time_series_reader module to parse and model the data but which provides the data to SPAs a la Angular style (Promises, Service, etc.).
There should also be an ES6 interface.