You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
Hi
I have a directive with its own scope.
scope: {optionalAttribute: '='}
I want the attributes to be optional.
if (scope.optionalAttribute == null)
{
scope.optionalAttribute= 'unnamed';
}
http://jsfiddle.net/johnnayweiler/28fJP/
This gives me the 'Non-assignable model expression'error.
Why is that so and how to enable default values for those attributes(make them optional)?
Thanks.
The text was updated successfully, but these errors were encountered: