I'm attempting to utilize the .property('key') syntax in order to update a computed value within my model. The structure of my model is as follows:
App.Camera = Em.Model.extend({
id: attr(),
uid: attr(),
name: attr(),
type: attr(),
refresh: attr(),
thumbnailUrl384x216: function() {
return '%@/devices/%@/thumbnail?width=384&height=216'.fmt(apiBaseUri, this.get('uid'));
}.property('uid', 'refresh'),
thumbnailUrlFull: function() {
return '%@/devices/%@/thumbnail?width=1280&height=720'.fmt(apiBaseUri, this.get('uid'));
}.property('uid', 'refresh')
});
Within my camera route, I am changing the value of the refresh variable at regular intervals. However, this change is not triggering updates for the thumbnailUrl properties. Could it be an issue with my implementation or does ember-model lack support for the .property() functionality?
I am able to observe changes to the refresh attribute in my template, indicating that it is indeed being updated. Any suggestions on what might be causing the problem?