AngularJS -$compileProvider.preAssignBindingsEnabled is not a function

后端 未结 2 961
谎友^
谎友^ 2021-01-21 01:46

I\'m getting the following error message when attempting to do a gulp serve on my AngularJS (ver 1.6.10) app:

Error: [$injector:modulerr] Failed to          


        
2条回答
  •  无人共我
    2021-01-21 02:37

    It is not supported anymore since AngularJS 1.6. For people who are still migrating their application to a more recent version of AngularJs, If you specified $compileProvider.preAssignBindingsEnabled(true) you need to first migrate your code so that the flag can be flipped to false. and take a look to this guide https://docs.angularjs.org/guide/migration#migrating-from-1-5-to-1-6

    AngularJs commit reference: https://github.com/angular/angular.js/commit/38f8c97af74649ce224b6dd45f433cc665acfbfb

提交回复
热议问题