Alex Young
ffcfe7a86e
docs(guide/di): fix some small grammatical issues
2013-06-04 20:30:43 +01:00
Eduardo Garcia
a95bfbeac0
docs(guide): format snippets of code in plain text
2013-06-04 20:06:33 +01:00
adamshaylor
c6fa3b06b1
docs(overview.ngdoc): clarify wording
2013-06-04 19:59:42 +01:00
Siddique Hameed
4179f62cc2
docs(guide/unit-testing): add expression example
...
* Improved developer guide, directive unit testing documentation code with scope expression
* Removed documentation block with nothing on it
2013-05-23 21:55:44 -07:00
Jens Rantil
9d19b512e0
docs(guide/directive): clarify directive priority
...
Fixes #2644 .
2013-05-22 21:09:20 +01:00
Ben Ripkens
cdf75b302f
docs(ngScenario): provide examples for element(...).query(fn)
...
element(selector, label).query(fn) is a very useful function, yet barely
explained. The developer guide should show how this function can be used
to conditionally execute behavior and assertions.
2013-05-21 13:36:17 +01:00
Jens Rantil
7f597a7509
doc($compile): clarify compile function return value
...
If a compile function (within a directive) returns a function, it is a
post-link function.
Closes : #2713
2013-05-21 13:17:51 +01:00
Jens Rantil
907d2f521e
docs(guide/type): remove empty "Type" page in guide
...
Closes #1316
2013-05-21 13:12:41 +01:00
David Holmes
518a92651f
doc(guide/compiler): fix grammatical error
...
"The compilation process happens into two phases." should be "The compilation process happens in two phases."
2013-05-20 10:24:12 +01:00
Pete Bacon Darwin
be993528a3
docs(guide::testing): fix link to angular-seed
2013-05-18 22:17:15 +01:00
Ben Ripkens
2ab4fde817
docs(guide): add API documentation for ngScenario matchers
...
Matchers are briefly mentioned in the e2e test guide, but there is no
documentation for the available matchers.
2013-05-18 21:00:45 +01:00
Jeremy Wilken
a7ba27b92c
doc(guide:$location): fix example for two way databinding.
...
When you are watching the $location.path(), it has to be wrapped in a
function since it is not attached to the scope and if you pass a string
to $scope.$watch it is evaluated against the $scope.
2013-05-17 19:16:55 +01:00
Matt Haggard
1f99c3a521
doc(guide): add links to angular-seed examples
...
The examples in the angular-seed project are better than nothing,
which is what we currently have here!
2013-05-16 22:02:16 +01:00
jamesBrennan
99cd86a96e
docs(guide:understanding_controllers): remove outdated info
...
Remove the outdated info in this document related to this API change
https://github.com/angular/angular.js/blob/master/src/ng/rootScope.js#L166
2013-05-15 21:32:15 +01:00
veselinn
ac8ba104d4
docs(guide): fix a typo
2013-05-10 20:52:18 +01:00
Alfred Nutile
f6caab598f
docs(guide): fix typo on model name
2013-05-10 14:58:00 +01:00
Chris Nicola
fc25a443f8
docs(guide:directive): add directive controller usage
...
Specifically adding a directive controller to the example definition
and how to use declare injectables to avoid minification errors.
2013-04-30 10:47:14 +01:00
Jeff Pickelman
b1157aafd7
docs(di): fix typos and grammar
2013-04-24 20:52:25 +02:00
Timothy Ahong
2d5297e665
docs(guide:unit-testing): add an example unit test for directives
2013-04-23 14:00:14 +01:00
Pete Bacon Darwin
de296f1b52
docs(compiler): don't drag selected content
...
In the example with draggable, the mouseDown handler needs to start with an event.preventDefault(). Otherwise the following bug occurs:
1) Select the text of the draggable span by clicking outside the span and dragging the mouse to the left or right through the span. Release the mouse button.
2) Now click on the span's inner text, and start to Drag it. The browser's default functionality that drags highlighted text so that it can be pasted into something else (say a document in a text editor) is invoked.
3) Release the mouse button. Now suddenly, you'll be dragging the span. But you won't be able to place it down on the page. It'll just follow the mouse around until the page is refreshed.
Closes : #2465
2013-04-22 13:38:18 +01:00
Keir Mierle
8c75b5f55a
docs(compiler): fix variable scope in drag sample
...
Note that without this fix, if you add a second draggable element, the
two instances clobber each other since there is only one set of
startx/starty/x/y variables.
Here is an example: http://plnkr.co/edit/aGrLXcIo2SuaePuAdfmQ?p=preview .
On the surface it looks like it would be fine because you only have one
mouse but in practice the start position jumps when you start dragging.
Here it is fixed: http://plnkr.co/edit/VuvPasuumtCeiVRisYKQ?p=preview
2013-04-22 12:52:08 +01:00
Keir Mierle
2d66ccd593
docs(forms): fix formatting
2013-04-22 12:38:26 +01:00
Ron Yang
af9c20c07d
docs(forms): fix typo
2013-04-22 12:34:38 +01:00
Paulo Ávila
2c34596b32
docs(guide): minor grammatical change
2013-04-21 19:53:52 +02:00
Merrick Christensen
8a2bfd7a78
docs(concepts): fix spelling error
2013-04-19 14:44:14 +01:00
Jared Beck
1d3e79e24e
docs(overview): correct the input validation example
...
The documentation says that the input should be red if you enter
invalid values or leave it blank. Because the type="integer" is not
supported this does not happen in practice. This fix changes the
input type to number and adds an ng-pattern to ensure that the number
is an integer.
2013-04-19 14:39:58 +01:00
@fbiville
fd91d86f0c
docs(directive guide) typo in compile/link section
...
The code snippet shows `{{action.description}}`, the explanation referred to it as `{{action.descriptions}}`.
2013-04-17 14:50:19 +01:00
Timothy Ahong
a91405889f
docs(guide.unit-testing): fix typo
2013-04-16 21:04:09 +01:00
Pete Bacon Darwin
5d1f37b535
doc(overview): add link to angular demo slides to overview
2013-04-15 11:20:46 +01:00
Seunghoon Yeon
0d8a95af6f
docs(module): fix typo
2013-04-13 17:19:11 +02:00
Prathan Thananart
6b63afe2f7
docs(guide): Update $locationProvider docs.
...
Default hashPrefix setting is not `'!'`, it's actually `""`.
Source: https://github.com/angular/angular.js/blob/master/src/ng/location.js#L472
2013-04-11 15:27:46 -07:00
kamagatos
b86815fb5b
docs(guide/i18n): fix a typo
2013-04-11 15:21:33 -07:00
Brent Morrow
ebf7cf9ed3
docs(guide/concepts): fix typo
...
An event is a user **interaction**, timer event, or network event (response from a server).
2013-04-11 14:56:30 -07:00
{Qingping,Dave} Hou
db547e63ee
docs(guide): Added $ sign to controller example
2013-04-11 14:32:44 -07:00
urenmj
63c25fd875
docs(dev-guide): Fixed a typo.
2013-04-11 14:25:50 -07:00
Brent Morrow
38dffe7e91
docs(guide/concepts): wording change
...
... or when working with --> a <-- third-party library callbacks.
... or when working with third-party library callbacks.
2013-04-11 14:08:43 -07:00
Brent Morrow
941633a911
docs(guide/concepts): wording change
2013-04-11 14:07:31 -07:00
Brent Morrow
3ec7b87483
docs(guide/expression): wording changes
2013-04-11 14:03:52 -07:00
Luc Morin
63ce1f6265
docs(guide/directives): give more details about directive declaration
2013-04-11 14:00:09 -07:00
Colin Kahn
59eb96b9e4
docs(guide/filters): document multiple arguments syntax
...
Add example of using a filter with that accepts multiple arguments.
2013-04-11 13:55:03 -07:00
Brian Campbell
f24cf4b58f
docs(guide): updates for legacy IE7 support
...
- note re: id="ng-app" to bootstrap/IE partials
- added doctype/xmlns to markup
- add cond comment re: json2/3 to markup
2013-04-11 13:00:10 -07:00
Heath Matlock
d90a79632d
docs(concespts): correct spelling and remove unnecessary word
2013-04-06 22:56:54 +02:00
Felipe Lahti
04cc1d2890
docs(guide): add missing closing div tag
2013-03-29 23:30:37 +01:00
Felipe Lahti
7d4a3210f0
docs(guide): fix typo in DI. angualar -> angular
2013-03-29 23:25:58 +01:00
Srinivas Kusunam
53abd3fba7
docs(directive): fix typo
2013-03-29 23:22:02 +01:00
Pascal Borreli
9480136d9f
docs(*): fixed typos
2013-03-29 23:14:55 +01:00
James deBoer
364e597499
Update forms.ngdoc
...
docs(forms): Fixed a typo. render -> $render
2013-03-24 23:11:36 -07:00
Arlen Christian Mart Cuss
fe4f0ea262
docs(directive): Fix entity confusion in example.
2013-03-19 10:53:46 -07:00
Niel de la Rouviere
69ef17cce9
docs(directive): minor typo fix
...
Changed "obeject" to "object"
2013-03-08 23:26:41 +01:00
Luis Ramón López
eb53423a41
feat($compile): support for dynamic template generation
...
`template` and `templateUrl` properties can now be optionally defined
via a function. This allows templates to be dynamically generated on
the fly.
2013-02-27 17:57:59 -08:00
Luis Ramón López
cf17c6af47
feat($compile): add attribute binding support via ngAttr*
...
Sometimes is not desirable to use interpolation on attributes because
the user agent parses them before the interpolation takes place. I.e:
<svg>
<circle cx="{{cx}}" cy="{{cy}}" r="{{r}}"></circle>
</svg>
The snippet throws three browser errors, one for each attribute.
For some attributes, AngularJS fixes that behaviour introducing special
directives like ng-href or ng-src.
This commit is a more general solution that allows prefixing any
attribute with "ng-attr-", "ng:attr:" or "ng_attr_" so it will
be set only when the binding is done. The prefix is then removed.
Example usage:
<svg>
<circle ng-attr-cx="{{cx}}" ng-attr-cy="{{cy}}" ng:attr-r="{{r}}"></circle>
</svg>
Closes #1050
Closes #1925
2013-02-27 00:55:40 -08:00
Jørgen Borgesen
753fc9e58d
feat(JQLite): ready() now supports document.readyState=='complete'
...
JQLite.ready() used for automatic bootstrapping (when jQuery is not present)
now checks if document already is ready when first called. This simplifies
bootstrapping when the angular script is loaded asynchronously.
However if other scripts with angular app code are being loaded as well
it is developers responsibility to ensure that these scripts are loaded
after angular-loader.js is evaluated and before angular.js script is
evaluated.
2013-02-25 15:32:14 -08:00
Vineet Kumar
6a612df7de
docs(guide/directives): update obsolete doc reference
...
Replace an obsolete reference to a nonexistent "Creating Widgets"
section with a real link to "Creating Components".
2013-02-25 14:51:52 -08:00
Luis Ramón López
ac899d0da5
feat($compile): '=?' makes '=' binding optional
...
If you bind using '=' to a non-existant parent property, the compiler
will throw a NON_ASSIGNABLE_MODEL_EXPRESSION exception, which is right
because the model doesn't exist.
This enhancement allow to specify that a binding is optional so it
won't complain if the parent property is not defined. In order to mantain
backward compability, the new behaviour must be specified using '=?' instead
of '='. The local property will be undefined is these cases.
Closes #909
Closes #1435
2013-02-25 14:30:54 -08:00
Dylan Pyle
7c6b1e06e8
docs(guide): fix some invalid javascript in directive documentation
...
Use double quotes to maintain consistency with other HTML
2013-02-14 15:11:04 -08:00
Jesse Cooke
f3231b9447
docs(guide): Fix typos in concepts/model,view.
2013-02-14 13:05:25 -08:00
Igor Minar
bec4435945
docs(guide): remove stale info about filters changing DOM
...
as of v0.10.6 this is not the case any more
2013-02-06 14:14:49 -08:00
theotheo
a83eced974
docs(module): fix code example
2013-02-06 20:40:06 +01:00
Amir H. Hajizamani
75487ec933
docs(guide): change prototype methods to scope methods in DI examples
...
As explained in 'Understanding the Controller Component', Controllers
written for new (post 1.0 RC) versions of Angular need to add methods to
the scope directly, not the function's prototype. Correcting this
example should remove any ambiguity, especially for beginners.
2013-01-18 00:49:41 -05:00
Shai Reznik
69e4d40a76
doc(guide): Fixed typos at the unit tests guide
2013-01-17 23:43:13 -05:00
Shai Reznik
d521619c58
doc(guide): Fix examples of $location.html5mode
2013-01-17 23:43:13 -05:00
Matt Rohrer
93070f1488
docs(guide): minor grammar fixes
2013-01-17 19:10:46 -05:00
Lucas Galfasó
c0cb9f8c14
doc(directive): Fix typos in dialog widget
...
Fixes #1799
2013-01-13 10:08:19 +00:00
kim lokoy
2b0978b07c
docs(guide): fix typos in unit test guide
2013-01-07 21:01:01 +01:00
Pawel Kozlowski
1122dc7a5b
docs(forms): fix code example for a custom form control
...
Closes #1021
2013-01-05 22:47:36 +01:00
Matt Hardy
8d42ce8563
docs(guide): change example controller to properly call greet method on greeter
2012-12-31 12:49:51 +01:00
John Fletcher
6aac69039e
docs(guide): minor English corrections to the Directive guide
2012-12-19 20:35:31 +01:00
Miško Hevery
1e13544da8
docs(directive): old syntax
2012-12-18 20:38:43 -08:00
Romain Neutron
a66c968df2
docs(guide): fix injector service code example
...
Fix syntax and update code to the latest API
2012-12-10 23:19:20 +01:00
János Rusiczki
c52bfd37ee
doc(concepts): Fix typo in $render() function
2012-12-07 10:03:58 +00:00
Daniel Luz
5f7054bf5d
docs(directive): correct expression, fix typo and re-wrap lines
2012-11-29 19:40:33 +01:00
Kris Jenkins
b21f4a376d
docs(): Fix a couple of typos in the documentation
2012-11-21 23:06:59 +01:00
Dave Clayton
f28f283fcf
docs(guide/concepts): some typo/grammar fixes
2012-11-17 23:55:32 +01:00
John Hume
e362a510e3
docs(guide/directive): fix typo
2012-11-17 23:49:19 +01:00
Jamison Dance
cd8b78ebfd
docs(guide): fix run-on sentence in modules guide
2012-11-11 11:34:06 +01:00
Tim Macfarlane
e9253a88b9
docs(guide/directive): fix names in scope '='; easier to grok
2012-11-11 11:20:24 +01:00
Miško Hevery
c6b4ab3548
Update docs/content/guide/directive.ngdoc
...
docs(directive): fix typo
2012-11-05 19:34:20 -08:00
Fred Sauer
3a624a7ff5
docs(guide/location): fix table formatting
...
Fix table formatting so headings are bold, rows are separated by lines, and rows have :hover style
2012-10-31 14:47:53 -07:00
Tim Macfarlane
b32adb7dea
docs(module): fix typo in example
...
fixed example app, `simpleAppModule` should have been `myAppModule`.
2012-10-31 14:21:28 -07:00
Miško Hevery
5418564f04
docs(directive): remove reference to old isolation syntax
2012-09-13 11:31:06 -07:00
Brian Ford
f2ebfa16b0
docs(guide): fix directive interpolation example code
...
Closes #1339
2012-09-11 16:12:41 -07:00
Misko Hevery
eb5fd400d3
docs(concept): correct example for creating injector
2012-09-06 16:06:23 -07:00
Godmar Back
0472c5f07e
docs(module): fixed module example and corrected typos
2012-09-06 16:06:23 -07:00
Jay Zeng
7079ff5eb6
docs(module): myAppModule -> simpleAppModule
2012-09-06 16:06:22 -07:00
Sahat Yalkabov
62cfedbe0c
doc(module) changed simpleApp to myApp in the Module page guide for consistency
2012-08-30 16:10:39 -07:00
Steve Nicolai
5cb7297a08
doc(devguide) - Fix typos and small grammatical errors in the developer guide.
2012-08-30 16:02:24 -07:00
Uri Goldshtein
f5f1200f25
Loading from Google CDN
...
As you guys had mansion, we can and need to do it through Google CDN for better performance,
so i've updated it accordingly
2012-08-30 15:49:11 -07:00
Tyson Benson
c023c850c3
docs(typos): fix typos in dev guide
2012-08-30 15:43:58 -07:00
csugden
351deb555f
Update docs/content/guide/overview.ngdoc
...
Corrects video information
2012-08-30 15:28:15 -07:00
Jamie Krug
847d2da0f8
fix(docs): Fix typos and improve grammar.
2012-08-30 15:25:21 -07:00
Jamie Krug
dbefd671e4
fix(docs): Fix bad links.
2012-08-30 15:25:20 -07:00
Colin Frei
aff68a9ddf
docs(module) fix typo
2012-08-30 15:22:08 -07:00
Misko Hevery
7a5f25f667
doc(guide): add concepts
2012-08-27 15:44:38 -07:00
Colin Frei
7e18724dfa
doc(directive) correct typos
2012-08-27 15:01:50 -07:00
Misko Hevery
d05a2809a1
doc(guide) simplify the guide home page
2012-08-27 14:59:17 -07:00
Vojta Jina
00683a8bbb
docs: fix broken links to $compileProvider.directive()
2012-08-12 10:44:29 -07:00
Brian Ford
2e3651686c
fix(docs): added note about using JSON3 as a polyfill for IE7
2012-08-10 16:27:44 -07:00
Brian Ford
536de14821
fix(docs): added note about needing JSON shim for IE7 and earlier
2012-08-10 16:27:44 -07:00
Vojta Jina
33ad2b4126
docs(guide): hide scenario for directive example
...
scenario test for this example would be tricky, we need to teach
the runner how to inject mocks first.
2012-07-30 21:21:34 -07:00
brettcannon
a1107e81eb
fix(docs): "in depth" -> "in-depth"
2012-07-20 20:54:42 -07:00