我正在使用ng2-date-countdown来创建倒计时器。但是得到错误
ERROR in:意外值'C中的CountDown:/Users / anand / sources /repos / vootingwebsite / VotingWebsite / node_modules / ng2-date-countdown / did / count.d.d。''由模块声明' AppModuleShared在C:/Users/anand/source/repos/vootingwebsite/VotingWebsite/ClientApp/app/app.shared.module.ts'。请添加@ Pipe / @ Directive / @ Component注释。
遵循https://www.npmjs.com/package/ng4-date-countdown-timer
的指示app.shared.module.ts
import { CountDown } from "ng2-date-countdown";
declarations: [
AppComponent, RegisterComponent, EqualValidator, DashBoardComponent,
MobileComponent, CountDown
],
我已经添加到@NgModule内的声明部分。
我试图在谷歌找到解决方案,但没有运气。
任何人都可以告诉我如何解决这个问题。