AngularJS Upgrade (1.5 to 1.6,1.7) Makes directive scope bindings undefined

后端 未结 2 410
小蘑菇
小蘑菇 2020-12-01 18:50

I have the following code:

angular
  .module(\'myApp\')
  .directive(\'layout\', function () {
      return {
          restrict: \'E\',
          template:          


        
2条回答
  •  庸人自扰
    2020-12-01 19:34

    I figured it out:

    https://github.com/angular/angular.js/commit/dfb8cf6402678206132e5bc603764d21e0f986ef

    This defaults to false now, must set to true $compileProvider.preAssignBindingsEnabled(true);

提交回复
热议问题