I came across an interesting problem not so long and that I think is worthy of a post as I could not find anything meaningful about it online when I came across the problem.
I wanted to create a computed property for each state that would update as deals are created. I wanted to do this but there was a problem. The deals states are not static and are in fact created by the user and as such, not known until runtime. The only way to create a computed property for each state was to do it at runtime.
I did a quick google but nothing came back so I had a look at the ember tests to see how they were testing computed properties and came across examples like this...
Your new post is loading...