Closed stubbies closed 9 years ago
I defined moment:
var moment;
var isAMoment = function(date) {
return moment !== undefined && moment.isMoment(date) && date.isValid();
};
It works ok. Now the problem is when I add lang
in the options, it shows the locale correctly but the ngModel
is no longer updated.
Ok the problem with the lang
option is when you add periods like this:
{am: 'a.m.'}
or spaces
{am: ' am'}
for some reason the model stops updating.
Could you check if this still breaks with the latest version (0.4.1)? I've fixed a bug could be related to this issue.
The minified module in the demo works but not the version you have on github.
I tried removing everything related to moment and it works but the model is
null
.The minified version you have in the demo works but it doesn't seem to accept the
lang
option.