Md-datepicker does not display calendar correctly

I can not get md-datepicker to display correctly. I followed the instructions by initializing the controller model: new Date()but when the calendar opens, I do not see the days, as in the screenshot below.

screenshot.

However, when I scroll through the page after a few seconds, the days start to display normally

enter image description here

I used angular 1.6.1 and ngMaterial 1.1.1

+4
source share
2 answers

Try to add

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

I destroyed the version of angular material to version 1.1.0 and it works as expected.

+1
source

Source: https://habr.com/ru/post/1665247/


All Articles