Created
December 14, 2018 15:20
-
-
Save biovisualize/720f4399e5d292eb541abbe5e0001dc5 to your computer and use it in GitHub Desktop.
Think API first
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ChartManager = function() { | |
function init() { } | |
function config() { } | |
function setData() { } | |
function render() { } | |
return { | |
init, | |
config, | |
setData, | |
render | |
} | |
} | |
const DataManager = function() { | |
function getData() { } | |
function getFilteredData() { } | |
return { | |
getData, | |
getFilteredData | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment