Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

@ComputedFrom throws "Cannot set property 'dependencies' of undefined"

Tags:

aurelia

I am trying to return initial number minus total array length, but i am getting an error. I tried with a simple single number but my problem still persists.

I don't understand what this error means:

"Cannot set property 'dependencies' of undefined"

What are the 'dependencies'?

Computed From Implementation Error

like image 819
avimatta Avatar asked Dec 17 '22 20:12

avimatta


1 Answers

the error you get is because @computedFrom should be used on properties, and not on functions.

change

getpersonListCount()
{
}

to

get personListCount()
{
}
like image 77
avrahamcool Avatar answered Apr 18 '23 08:04

avrahamcool