If the parent scope property doesn't exist, it will throw a NON_ASSIGNABLE_MODEL_EXPRESSION exception. You can avoid this behavior using =? or =?attr in order to flag the property as optional.
If you want to shallow watch for changes (i.e. $watchCollection instead of $watch) you can use =* or =*attr (=*? or =*?attr if the property is optional).
If the parent scope property doesn't exist, it will throw a NON_ASSIGNABLE_MODEL_EXPRESSION exception. You can avoid this behavior using
=?
or=?attr
in order to flag the property as optional.If you want to shallow watch for changes (i.e. $watchCollection instead of $watch) you can use
=*
or=*attr
(=*?
or=*?attr
if the property is optional).