Brian Ford
de2cced192
docs(guide/contribute): remove redundancy and link to CONTRIBUTING.md
2013-11-04 10:35:21 -08:00
Chirayu Krishnappa
3d6a89e888
feat($parse): secure expressions by hiding "private" properties
...
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-10-30 17:01:51 -07:00
Pete Bacon Darwin
117de8e6e2
docs(api): fix broken links
2013-10-30 21:24:20 +00:00
Fred Sauer
2ae29b1ce3
docs(api): fix broken links
...
Closes #4705
2013-10-30 21:16:38 +00:00
Adam Bowen
89a67ca77c
docs(guide/injecting-services): fix indentation in example
...
Closes #4714
2013-10-30 21:08:33 +00:00
Renan Ivo
e53e2c2d58
docs(tutorial): add instructions to install karma plugins
2013-10-30 21:00:11 +00:00
El Juli
6e77f80827
docs(guide/e2e-testing): fix typo
...
Closes #4700
2013-10-30 20:56:38 +00:00
JoeLeCodeur
d355b6c48e
docs(api): improve grammar
...
Closes #4690
2013-10-30 20:55:43 +00:00
andre
8a3aba7358
docs(guide/understanding_controller): correct grammar
...
Add the word "to" to improve grammar.
Closes #4698
2013-10-30 20:52:18 +00:00
Gabor Csizmadia
3d4c80cc3e
docs(guide/directive): fix myDraggable for zoomed page
...
If you have zoomed into the page in your browser then the screen coordinate system no longer
matches the page coordinate system. To ensure that dragged elements work correctly when zoomed
we should use pageX/pageY rather than screenX/screenY.
Closes #4687
2013-10-28 22:01:15 +00:00
Pete Bacon Darwin
d3b38dda06
docs(guide): improve links to books
...
Nested bullet points don't appear very nicely so resorted to nested
heading for the Learning Resources and in particular Books sections.
Closes #4677
2013-10-28 21:27:30 +00:00
Christopher Hiller
32b3494aa1
docs(guide): add link to book
2013-10-28 21:27:29 +00:00
royling
29e40c1f1c
docs(guide/compiler): fixed a typo
...
Closes #4674
2013-10-28 20:30:06 +00:00
Pete Bacon Darwin
f3e3a65e29
docs(tutorial/index): fix git clone URL
...
Closes #4536
2013-10-27 21:54:51 +00:00
netpoetica
c36e73de03
docs(guide/e2e-testing): callout ngmodel vs attr
...
Add note that `input()` fn matches ng-model instead of HTML name attribute.
About five users on forums were snagged by this assumption:
http://docs.angularjs.org/guide/dev_guide.e2e-testing#comment-898079915
Closes #4655
2013-10-27 21:48:50 +00:00
Matias Niemelä
7c5e2511fd
chore(ngdocs): improve the docs search placeholder text
2013-10-27 21:30:54 +00:00
Leif Halvard Silli
8e5e641c0e
docs(guide/ie): fix typo
...
The escaping of the colon in the example CSS is incorrect.
Replace `ng\\:view {` with `ng\:view {`
Closes #4570
2013-10-27 21:27:49 +00:00
gabriel-tessier
2cdb588b86
docs(guide/unit-testing): fix typo
...
Closes #4601
2013-10-26 20:15:50 +01:00
Pete Bacon Darwin
0bbb9e6258
docs(error/compile/tplrt): split long lines
2013-10-26 20:14:08 +01:00
gdennie
81d5bc860d
docs(error/compile/tplrt): clarify and grammar
...
Closes #4503
2013-10-26 20:14:08 +01:00
gdennie
9f2c8e935a
Clarification stemming from my own issues
...
It is instructive to give literal examples that reflect common (my) experience of the problem. :)
2013-10-26 20:09:09 +01:00
Pete Bacon Darwin
256fcb6884
docs(guide/compiler): clarify wording
...
Closes #4668
2013-10-26 20:07:00 +01:00
douglascalhoun
9453c61093
docs(guide/compiler): fix typo
...
Closes #4667
2013-10-26 19:58:05 +01:00
Preston Marshall
8b74738568
docs(guide/e2e-testing): add note about Protractor replacement
...
Add a note to warn people starting new projects about Protractor replacing the
current ngScenario way of doing E2E testing.
Closes #4644
2013-10-26 19:50:43 +01:00
@supercobra
96da4c14a7
docs(api/index): improve grammar
...
Closes #4648
2013-10-26 19:49:14 +01:00
Joe Grund
a4d3146ee9
docs(guide/directive): correct reference to myDir rather than ngBind
...
Closes #4647
2013-10-26 19:47:43 +01:00
George Bonner
d1a285e5d3
docs(guide/overview): improve grammar and readability
...
Closes #4639
2013-10-26 19:43:35 +01:00
Andrew Stuart
3cfe9575e9
docs(guide/understanding_controller): apply a more intuitive metaphor
...
The BabyCtrl was a bit confusing and GrandChildCtrl seems to make more sense
with the whole "scope inheritance" concept.
Closes #4634
2013-10-26 19:36:53 +01:00
Sean Fahey
05bc53d34d
docs(tutorial/step-11): add missing dependencies
...
Closes #4633
2013-10-26 19:33:16 +01:00
Pete Bacon Darwin
fca7bcaf43
docs(guide/directive): improve wording
2013-10-26 19:24:03 +01:00
Joey Organisak
a1806bb460
docs(guide/directive): we are registering directives, not controllers
...
Closes #4615
2013-10-26 18:51:44 +01:00
David Bennett
e73bd40e85
docs(ngdoc.js): fix usage to display attributes as dash-case
...
Closes 4611
2013-10-26 18:17:54 +01:00
Artemy Tregubenko
28bf357553
docs(guide/bootstrap): fix typo
...
Closes #4578
2013-10-25 22:11:08 +01:00
Jesse Palmer
34b1ceb42e
docs(tutorial/step-7): add doctype directive to example
...
Closes #4552
2013-10-25 22:09:38 +01:00
DanS
c1e6afca11
docs(tutorial/step-2): add beforeEach to load module
...
The non-global controller test throws an error because the test does not
know about the module and so can not find the controller. This change
tells the test about the module so the test can find the controller.
Closes #4489
2013-10-25 22:03:10 +01:00
phamdt
4645c95702
docs(tutorial/step-5): fix wrong link to services guide
...
Closes #4477
2013-10-25 21:51:23 +01:00
Brad Green
c47a366bc4
docs(guide): rewrite guide landing page
...
Change landing page to include a set of curated links with subject
headings as a guide through Angular's docs and other resources.
Closes #4470
2013-10-25 21:47:29 +01:00
Maarten Stolte
bb1395b452
docs(guide/e2e-testing): remove superfluous block of text
...
The removed block is repeated from the unit-testing guide and appears
in an awkward place in this text.
Closes #4456
2013-10-25 21:46:32 +01:00
mmieszek
e7177d3159
docs(guide/expression): fix duplicate key error in example
...
The example that demonstrates how to parse expressions can fail if you
pass in the same expression twice. By using "track by $index" we can
fix this.
Closes #4472
2013-10-25 21:46:31 +01:00
CloudDueling.com
db9c6a3528
docs(error/multidir): improve the sentence fluency
...
Closes #4449
2013-10-24 22:21:27 +01:00
Walter Higgins
88e35fa8d6
docs(tutorial/step_00): reword sentence to make sense
...
Closes #4429
2013-10-24 22:11:56 +01:00
G.H. Naylor
d3930fdfd9
docs(modulerr): fix typo
...
Closes #4418
2013-10-24 20:51:32 +01:00
Josh McAdams
1c621bdf23
docs(tutorial/step-07): fix typo
...
Closes #4410
2013-10-24 20:43:32 +01:00
Matias Niemelä
261057db9b
chore(ngdocs): ensure the docs menu changes when browsing a different section
...
Closes #4619
2013-10-24 09:27:45 -04:00
Brian Ford
e69c287293
docs(guide/directive,guide/compiler,): drastically improve
2013-10-23 14:17:27 -07:00
Matias Niemelä
a7e12b7959
feat(docs): provide index pages for each angular module
2013-10-23 17:00:12 -04:00
Matias Niemelä
74912802c6
feat(ngdocs): add forward slash shortcut key for search bar
2013-10-22 21:23:59 -04:00
Matias Niemelä
6c20ec193f
fix(ngdocs): remove the side search bar
...
BREAKING CHANGE
The side search bar on the docs page has been removed in favor of the
top search bar.
2013-10-22 21:23:59 -04:00
Vojta Jina
14438058da
docs: correct broken links
...
This also contains some whitespace corrections by my editor.
2013-10-18 15:35:41 -07:00
Vojta Jina
e8cc85f733
chore(docs): generate header ids for better linking
...
- generate ids for all headers
- collect defined anchors
- check broken links (even if the page exists, but the anchor/id does not)
2013-10-18 15:35:41 -07:00