user2742181
user2742181

Reputation: 53

md-datepicker not rendering calendar correctly

I cannot get the md-datepicker to render correctly. I have followed the instructions by initializing the model in the controller to: new Date(), but when calendar opens I don't see days, like on the screenshot below.

screenshot.

However when I scroll up after a few seconds, days start to appear normally

enter image description here

I used the angular 1.6.1 and the ngMaterial 1.1.1

Upvotes: 4

Views: 1518

Answers (2)

Stevik
Stevik

Reputation: 1152

Try to add

angular.module('App', []).config(function($compileProvider) {
    $compileProvider.preAssignBindingsEnabled(true);
});

Upvotes: 3

user2742181
user2742181

Reputation: 53

I degraded the angular-material version to 1.1.0 and it works as expected.

Upvotes: 1

Related Questions