aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/error/parse
AgeCommit message (Collapse)Author
2014-02-16chore(errors): rename folders to match namespacesPeter Bacon Darwin
2013-11-13feat($parse): revert hiding "private" propertiesVojta Jina
Hiding `_*` properties was a feature primarily for developers using Closure compiler and Google JS style. We didn't realize how many people will be affected by this change. We might introduce this feature in the future, probably under a config option, but it needs more research and so I'm reverting the change for now. This reverts commit 3d6a89e8888b14ae5cb5640464e12b7811853c7e. Closes #4926 Closes #4842 Closes #4865 Closes #4859 Closes #4849 Conflicts: src/ng/parse.js
2013-10-30feat($parse): secure expressions by hiding "private" propertiesChirayu Krishnappa
BREAKING CHANGE: This commit introduces the notion of "private" properties (properties whose names begin and/or end with an underscore) on the scope chain. These properties will not be available to Angular expressions (i.e. {{ }} interpolation in templates and strings passed to `$parse`) They are freely available to JavaScript code (as before). Motivation ---------- Angular expressions execute in a limited context.  They do not have direct access to the global scope, Window, Document or the Function constructor.  However, they have direct access to names/properties on the scope chain.  It has been a long standing best practice to keep sensitive APIs outside of the scope chain (in a closure or your controller.)  That's easier said that done for two reasons: (1) JavaScript does not have a notion of private properties so if you need someone on the scope chain for JavaScript use, you also expose it to Angular expressions, and (2) the new "controller as" syntax that's now in increased usage exposes the entire controller on the scope chain greatly increaing the exposed surface.  Though Angular expressions are written and controlled by the developer, they (1) typically deal with user input and (2) don't get the kind of test coverage that JavaScript code would.  This commit provides a way, via a naming convention, to allow publishing/restricting properties from controllers/scopes to Angular expressions enabling one to only expose those properties that are actually needed by the expressions.
2013-09-17fix($parse): disallow access to window and dom in expressionsChirayu Krishnappa
2013-08-07docs(minErr): improve $parse/isecfnIgor Minar
2013-08-07docs(minerr): Adds a description for parser.lexerrJames deBoer
Closes #3433
2013-08-07docs(minerr): Adds a description for parser.syntaxJames deBoer
Closes #3434
2013-08-07docs(minerr): Adds a description for parser.ueoeJames deBoer
Closes #3435
2013-08-07docs(mirErr): add a description for $parse.isecfld and isecfnJames deBoer
2013-07-24docs(minErr): Build minErr doc siteKen Sheedlo