You have to assign the scope to accept an object by adding in your return object scope: { user: '=myUser' } default seems to only accept strings.
I'm just pulling everything from Wordpress to avoid reinventing the wheel :)
You have to assign the scope to accept an object by adding in your return object scope: { user: '=myUser'
}
default seems to only accept strings.