0

Angular 1.5.9 introduced very interesting performance upgrades:

$compileProvider.commentDirectivesEnabled( false ); // disable comment directives
$compileProvider.cssClassDirectivesEnabled( false ); // disable css class directives

I updated version of Angular in my app to 1.5.9-build.5158+sha.cc92da0 and later to 1.6.0-rc.1 to use above features. Everything except one detail works fine. The thing which is broken is Angular Materials datepicker (1.1.1).

When you open datepicker it appears empty, but when you scroll it up a little all information appears. DEMO

I spent some time fiddling around but I can't find the direct reason of such behavior.

Any help with fixing this bug will be appreciated.

4

1 回答 1

2

该问题是由Angular 1.6 中的默认$compileProvider.preAssignBindingsEnabled设置引起的。false

更多信息。

为了解决这个问题,我将其更改为true

.config( [ '$compileProvider', function ( $compileProvider ) {
  /* ... */
  $compileProvider.preAssignBindingsEnabled( true );
} ] )
于 2016-11-24T08:51:29.670 回答