0
votes

I am working with Angular Signature Pad. There is some issue with this line:

AngularSignaturePadModule.forRoot(),

ERROR in Error during template compile of 'AppModule' Function calls are not supported in decorators but 'AngularSignaturePadModule' was called.

I don't know what to pass in .forRoot(). Any Help?

1

1 Answers

0
votes

Check how you import the code

For example: This was bad

import { SampleService } from './services'

This is good

import { SampleService } from './services/sample.service'

Because you always have to specify the file name if you are not export in the index.ts file like this

export * from './services/sample.service'