yuyang041060120 / angular2-ui-switch

angular2 ui switch component
http://yuyang041060120.github.io/angular2-ui-switch
MIT License
57 stars 36 forks source link

Getting Error: Supplied parameters do not match any signature of call target #11

Open Mage111 opened 7 years ago

Mage111 commented 7 years ago

"angular2-ui-switch": "1.2.0",

When upgrade to angular 4 and angular\cli 1.0.0 getting this error when compiling with AOT:

ERROR in ng:///C:/ProjentName/node_modules/angular2-ui-switch/src/ui-switch.component.ts.UiSwitchComponent.html (8,3): Supplied parameters do not match any signature of call target.

Seems that there is no match between calling method from html, and signature of the method in the component.

sabrio commented 7 years ago

+1 ??!!

sfinx13 commented 7 years ago

Same error afterng build --prod src/$$_gendir/node_modules/angular2-ui-switch/src/ui-switch.component.ngfactory.ts (238,28): Supplied parameters do not match any signature of call target.

MarcoFlyertech commented 7 years ago

The author is unresponsive and that's a pity. I'm gonna fork the project if the license allows it.

Artur93gev commented 7 years ago

Hi guys you can look at this answer https://github.com/oferh/ng2-completer/issues/215 than if you want to solve the problem you need to look at this https://stackoverflow.com/questions/43112636/angular2-supplied-parameters-do-not-match-any-signature-of-call-target P.S. the last answer helped me to solve but by understanding that it is ruling by 'vis versa' too. I had function called from template with $event paramter and did not describe it in controller my function did not expected any parametre I hope this will help

steeper commented 7 years ago

[style.background-color]="getColor()" : this line gives the error on ng build --prod if you give it a parameter it works perfectly