angular2-ui-switch icon indicating copy to clipboard operation
angular2-ui-switch copied to clipboard

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

Open Mage111 opened this issue 7 years ago • 5 comments

"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.

Mage111 avatar Mar 26 '17 09:03 Mage111

+1 ??!!

sabrio avatar Apr 13 '17 14:04 sabrio

Same error after ng 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.

sfinx13 avatar Apr 19 '17 20:04 sfinx13

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

MarcoFlyertech avatar Apr 21 '17 09:04 MarcoFlyertech

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

Artur93gev avatar Aug 05 '17 12:08 Artur93gev

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

steeper avatar Sep 21 '17 18:09 steeper