code: function (params) {
          var self = this;
          this.parseParams(params);
          if (!this.loaded) {
            this.fetchApi(api).success(function (data) {
              packages = data;
              self.loaded = true;
              self.search();
            });
          }
          else {
            this.search();
          }
        }
docs: Set params and update results