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

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -