Using AngularJS in a Google Chrome extension

后端 未结 2 1783
长发绾君心
长发绾君心 2020-12-24 02:35

I am trying to use the Google developer AngularJS library in an extension popup, but I get an error.

Error: Code generation from strings disallowed fo

2条回答
  •  甜味超标
    2020-12-24 03:17

    You have to use CSP mode in angular to be inside Chrome extension. See: https://github.com/angular/angular.js/issues/893

    Basically you have to declare your app as:

    
    

提交回复
热议问题