jsplink / tntjs

v 0.2.0
GNU General Public License v3.0
1 stars 1 forks source link

Stop using knockout to observe individual VM properties. In fact, remove it from Dataserve. #12

Open jsplink opened 9 years ago

jsplink commented 9 years ago

Stuff like this...

        self.offset = ko.observable(0);
        self.hasMore = ko.observable(true);
        self.limit = ko.observable(args.limit);
        self.order = ko.observable(args.order);
        self.triggers = args.tiggersMore;
        self.list = ko.observableArray([]);
        self.filteredList = ko.observableArray([]);
        self.loading = ko.observable(true); // in the process of loading

...is dirty. Knockout should only be used for viewModel < - > browserDOM bindings. In fact, remove it from dataserve completely.

RxJS for make that transaction on the fly.

jsplink commented 9 years ago

Get rid of filteredList. Add or remove filter helpers from the list's filter method as a strategic component of the associated RxJS observations.

jsplink commented 9 years ago

Apply the arguments to the ComputerQuery with a fresh object extension instead of including this tiring piece.

jsplink commented 9 years ago

Create a required mixin which abstracts these boilerplate require calls.

jsplink commented 9 years ago

Abstract AppConfig from dataserve and rename it to app.json. Make it an RxJS thing.