Skip to content
Advertisement

Angular Data-Binding results in NaN

My problem is that the @Input() does not work properly for me. When I try to pass a value via data-binding it results in a NaN Error message.

I appreciate any form of help.

JavaScript

My “View”. Here I pass the data to my “NavButtonComponent”-class.

JavaScript

Advertisement

Answer

The answer was <app-nav-button page="food-list"></app-nav-button>. Removing the [] was the solution. Thank you @cfprabhu !

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement