Monday, April 22, 2013

Error : 'XXXX' does not contain a constructor that takes '0' arguments


If you provide a parametered constructor to a class, then you must also provide a parameterless (default) constructor.

If you only provide a parameter constructor , you will get something like this :
‘XXXX’ does not contain a constructor that takes '0' arguments 

No comments:

Post a Comment

How to check local and global angular versions

 Use the command ng version (or ng v ) to find the version of Angular CLI in the current folder. Run it outside of the Angular project, to f...