As I compile my solution containing your directive with ng build everything is ok.
But as I compile with ng build --prod Ireceive the following error
ERROR in angular-io-slimscroll\slimscroll.directive.ts(3,2): Error during template compile of 'SlimScroll'
Function expressions are not supported in decorators in 'Directive'
'Directive' contains the error at @angular\core\core.ts(404,32)
Consider changing the function expression into an exported function.
As I compile my solution containing your directive with
ng build
everything is ok. But as I compile withng build --prod
Ireceive the following errorDo you have any idea?
I use angular 5.2