Skip to content

Instantly share code, notes, and snippets.

@EdwardIII
Last active December 15, 2015 04:59
Show Gist options
  • Save EdwardIII/5205857 to your computer and use it in GitHub Desktop.
Save EdwardIII/5205857 to your computer and use it in GitHub Desktop.
var Finder = function(){
var self = this;
self.data = ko.observable();
self.selectedCategory = ko.observable();
self.categories = ko.observable([]);
self.loadCategories = function(categories){
ko.mapping.fromJS(categories.objects, {}, self.categories);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment