I've just installed moment.js into my angularjs app.
But the jshint keep warning that moment is not defined.
public/js/services/notifications.js
16 | console.log(moment.locale('fr'));
^ 'moment' is not defined.
Add moment to the globals configuration of your .jshint file
{
..,
"globals": {
..,
"moment" : false
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With