What I want is for the ‘filteredPosts’ value to recompute whenever the ‘level’ variable is changed. The problem is that I can’t seem to get it to listen for my ‘level’ variable. It only listens to the ‘model’. Does anyone now how I can get this to compute whenever ‘level’ changes?
I can recommend avoiding .property for code readability. Having all the dependent keys up the top makes it much easy to find what can trigger that computed property. This becomes more important as your code base grows
My guess re locks’ comment is that .property is a hangover from the prototype extension days where function(){}.property() defined a computed property and it’s likely to be deprecated at some stage. It hasn’t been the recommended way since v1.12.0