The "date" method you are trying to get does not exist in the class declaration

This is a stupid question, but here is one:

./SPA/application/Foo/Foo-list/Foo-list.component.ts( An emitted value instead of an Error instance) [19, 56]: The "date" method you are trying to access does not exist in the class declaration.

I am using angular with date which is angular integrated.

{{ item?.created | date:'dd' }}

And tslint produces this annoying warning. I am using webpack with tslint-loader.

Well, any tips? :)

+3


source to share


1 answer


Is the element not private in your "foo-list.component.ts" component?



0


source







All Articles