angular - Can't bind to 'userID' since it isn't a known property of 'view-user' -
i have following template expression:
which refers viewusercomponent contains:
@input() userid;
why following error?
can't bind 'userid' since isn't known property of 'view-user'.
1) ngif="doselect" can create problem sure it works expected.
2) [userid]="selecteduser?.id" shown, can try ?.
operator (i assume selecteduser object comes server).
Comments
Post a Comment