Skip to content

Instantly share code, notes, and snippets.

@abiodun0
Last active September 23, 2016 23:45
Show Gist options
  • Save abiodun0/6b408790e321833ae1d346cc5b1b6666 to your computer and use it in GitHub Desktop.
Save abiodun0/6b408790e321833ae1d346cc5b1b6666 to your computer and use it in GitHub Desktop.
function Index() {
this.importedJson = {}
}
Index.prototype.createIndex = function () {
fetch('the url to the jsoin').then((res)=> {
return res.json()
}).then((res)=> {
this.importedJson = res
})
}
Index.prototype.searchToken = function() {
}
Index.prototype.search = function() {
}
Index.prototype.vm = function() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment