JohnTigue / idots

A web data standard for Infectious Disease Outbreak Time Series (IDOTS), and related software
http://tigue.com/
Apache License 2.0
3 stars 0 forks source link

Reader module: Angularize #96

Open JohnTigue opened 8 years ago

JohnTigue commented 8 years ago

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.

JohnTigue commented 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:

JohnTigue commented 8 years ago

Maybe this thing should just be called OutbreakReader.