I've successfully added the library moment.js
by running:
npm i moment
I've included it in scripts and attempted to import it in module.ts.
However, when I try to use moment in component.ts
, I'm getting an error that says:
'cannot find name as moment'.
Can you help me figure out what I'm doing wrong?