These are chat archives for jdubray/sam-examples

23rd
Apr 2016
dnson
@imnutz
Apr 23 2016 05:03
@jdubray so from what you said, there should be some thing like this in the model:
model.fetchingData = function() {
      callRestAPI({})
           .then(function(response) {
                  - update model's data
                  - call State.render
          })
}

model.updateContact = function() {
      callRestAPI({})
           .then(function(response) {
                   - update model's data
                   - call State.render
           })
}

// same for create and delete