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.
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
}
}