No description
Find a file
Igor Minar 2b87c814ab feat($parse): CSP compatibility
CSP (content security policy) forbids apps to use eval or
Function(string) generated functions (among other things). For us to be
compatible, we just need to implement the "getterFn" in $parse without
violating any of these restrictions.

We currently use Function(string) generated functions as a speed
optimization. With this change, it will be possible to opt into the CSP
compatible mode using the ngCsp directive. When this mode is on Angular
will evaluate all expressions up to 30% slower than in non-CSP mode, but
no security violations will be raised.

In order to use this feature put ngCsp directive on the root element of
the application. For example:

<!doctype html>
<html ng-app ng-csp>
  ...
  ...
</html>

Closes #893
2012-04-27 23:04:24 -07:00
.externalToolBuilders Created a performance test harness and reporter 2011-06-08 13:49:10 -07:00
.settings added any edit perf to make sure no trailing whitespace 2011-01-24 14:23:51 -08:00
css refactor(directives): connect new compiler 2012-01-25 11:50:37 -08:00
docs docs(directive): fix transclusion examples 2012-04-21 21:08:30 +02:00
example docs(examples): update example apps 2012-03-28 11:24:47 -07:00
i18n fix(i18n e2e tests): 2012-03-28 11:24:47 -07:00
images chore(logo): added angular shield logo 2012-04-20 11:29:33 -07:00
lib chore(server.js): Add CSP support 2012-04-27 22:04:16 -07:00
logs creating logs/ and tmp/ dirs 2010-10-29 10:47:06 -07:00
perf feat(module): new module loader 2012-01-10 22:27:00 -08:00
regression style(docs): make jslint happy - fix some warnings 2011-11-14 20:31:19 -08:00
src feat($parse): CSP compatibility 2012-04-27 23:04:24 -07:00
test feat($parse): CSP compatibility 2012-04-27 23:04:24 -07:00
tmp creating logs/ and tmp/ dirs 2010-10-29 10:47:06 -07:00
.gitignore style(.gitignore) added IDEA 2011-10-11 10:53:07 -07:00
.project Created a performance test harness and reporter 2011-06-08 13:49:10 -07:00
angularFiles.js feat($parse): CSP compatibility 2012-04-27 23:04:24 -07:00
angularjs.ftp add ftp script to auto deploy to angularjs.org 2010-08-14 11:03:36 -07:00
changelog.js docs(changelog): release notes for 1.0.0rc5 reality-distortion 2012-04-12 03:26:10 -07:00
CHANGELOG.md docs(changelog): release notes for 1.0.0rc6 runny-nose 2012-04-20 15:06:05 -07:00
changelog.spec.js chore(release scripts): auto release scripts 2012-03-29 07:22:13 -07:00
changelog.tmp.md chore(release scripts): auto release scripts 2012-03-29 07:22:13 -07:00
check-size.sh chore(check-size): add a script to check gziped size 2012-04-23 11:42:27 -07:00
gdocs.js chore(formating): clean code to be function() { 2011-10-11 11:01:46 -07:00
gen_docs.sh fix(gen-docs): require files without touching PATH 2011-10-18 22:23:52 -07:00
gen_jstd_configs.js chore(Rakefile): get ready for modules 2012-03-28 11:16:36 -07:00
java ng:repeat ignores prototype keys 2010-07-09 14:45:29 -07:00
LICENSE chore(license): update to google 2012-04-20 11:29:34 -07:00
nodeserver.sh Fix issue where directories don't have a slash on the end and allow specifying a different port 2010-10-23 14:22:54 -07:00
pom.xml chore(ide): add pom.xml for IDEs that grok maven 2011-08-23 08:17:46 -07:00
Rakefile chore(ngSanitize): extract $sanitize, ngBindHtml, linkyFilter into a module 2012-04-11 15:50:47 -07:00
README.md chore(readme): add some links and update test commands 2012-01-05 19:54:42 -08:00
release-commit.sh chore(release scripts): auto release scripts 2012-03-29 07:22:13 -07:00
server-coverage.sh Add test coverage analysis. 2010-11-12 16:13:53 -08:00
server-scenario.sh JSTD adapter for running e2e tests 2011-05-19 09:43:56 -07:00
server.sh refactor(angular): externalize script load order into JSON 2011-09-13 01:02:22 +02:00
start-iteration.sh chore(release scripts): auto release scripts 2012-03-29 07:22:13 -07:00
test-coverage.sh Allow disabling of shell scripts without changing eclipse configuration 2011-06-08 13:46:39 -07:00
test-jquery.sh chore(scripts): add test-jquery.sh for running unit tests with jQuery 2011-07-14 10:59:25 +02:00
test-modules.sh chore(Rakefile): get ready for modules 2012-03-28 11:16:36 -07:00
test-perf.sh Allow disabling of shell scripts without changing eclipse configuration 2011-06-08 13:46:39 -07:00
test-reset.sh Created a performance test harness and reporter 2011-06-08 13:49:10 -07:00
test-scenario.sh Allow disabling of shell scripts without changing eclipse configuration 2011-06-08 13:46:39 -07:00
test.sh chore(scripts): add test-jquery.sh for running unit tests with jQuery 2011-07-14 10:59:25 +02:00
version.js chore(release scripts): auto release scripts 2012-03-29 07:22:13 -07:00
version.yaml chore(release): start 1.0.0rc7 rc-generation iteration 2012-04-23 11:42:26 -07:00
watchr-docs.rb chore(watchr): watchr scripts should output logs to terminal 2011-10-31 11:34:25 -07:00
watchr.rb chore(watchr): watchr scripts should output logs to terminal 2011-10-31 11:34:25 -07:00

AngularJS

Compiling

rake compile

Running Tests

./server.sh                          # start the server
open http://localhost:9876/capture   # capture browser
./test.sh                            # run all unit tests