Closed cesine closed 12 years ago
Refused to apply inline style because it violates the following Content Security Policy directive: "default-src 'self'".
index.html:8
Refused to apply inline style because it violates the following Content Security Policy directive: "default-src 'self'".
index.html:66
Error: Code generation from strings disallowed for this context
at Function (
Angular uses in-line style, does it need it?
angular.element(document).find("head").append('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak{display:none;}ng\\:form{display:block;}</style>');
Angular has eval, does it need it?
Line 1883 in angular.min:
e = Function("s", "k", g);
the answer is actually that you can use eval for 30% faster loads, or you can turn it off using a ng-csp directive https://github.com/angular/angular.js/wiki/Using-AngularJS-in-a-Chrome-Extension-environment
so, angular can work out of the box in a chrome extension.
Status: works
Added an external css file and now the {{variableNames}} are not visible
Added a directive in the html tag to turn off eval