Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 9480136

Browse files
pborrelipkozlowski-opensource
authored andcommitted
docs(*): fixed typos
1 parent 4ae4681 commit 9480136

21 files changed

+34
-34
lines changed

docs/content/guide/dev_guide.templates.databinding.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@name Developer Guide: Templates: Data Binding in Angular
33
@description
44

5-
Data-binding in Angular web apps is the automatic syncronization of data between the model and view
5+
Data-binding in Angular web apps is the automatic synchronization of data between the model and view
66
components. The way that Angular implements data-binding lets you treat the model as the
77
single-source-of-truth in your application. The view is a projection of the model at all times.
88
When the model changes, the view reflects the change, and vice versa.

docs/content/guide/directive.ngdoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ here:
7272
If an attribute with a binding is prefixed with `ngAttr` prefix (denormalized prefix: 'ng-attr-',
7373
'ng:attr-') then during the compilation the prefix will be removed and the binding will be applied
7474
to an unprefixed attribute. This allows binding to attributes that would otherwise be eagerly
75-
processed by browsers in their uncompilled form (e.g. `img[src]` or svg's `circle[cx]` attributes).
75+
processed by browsers in their uncompiled form (e.g. `img[src]` or svg's `circle[cx]` attributes).
7676

7777
For example, considering template:
7878

@@ -280,7 +280,7 @@ In most cases you will not need such fine control and so the above can be simpli
280280
different parts of this skeleton are explained in following sections. In this section we are
281281
interested only in some of this skeleton.
282282

283-
The first step in simplyfing the code is to rely on the default values. Therefore the above can be
283+
The first step in simplifying the code is to rely on the default values. Therefore the above can be
284284
simplified as:
285285

286286
<pre>

docs/content/misc/downloading.ngdoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ testing angular apps even easier. Your unit/integration test harness should load
6464
to write and execute end-to-end tests for angular applications.
6565

6666
* __`angular-loader.min.js`__ — Module loader for Angular modules. If you are loading multiple script files containing
67-
Angular modules, you can load them asynchronosuly and in any order as long as you load this file first. Often the
68-
contents of this file are copy&pasted into the `index.html` to avoid even the inial request to `angular-loader.min.js`.
67+
Angular modules, you can load them asynchronously and in any order as long as you load this file first. Often the
68+
contents of this file are copy&pasted into the `index.html` to avoid even the initial request to `angular-loader.min.js`.
6969
See [angular-seed](https://github.com/angular/angular-seed/blob/master/app/index-async.html) for an example of usage.
7070

7171
* __`angular-resource.js`__, __`angular-cookies.js`__, etc - extra Angular modules with additional functionality.

src/Angular.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ function shallowCopy(src, dst) {
631631
* * Both objects or values are of the same type and all of their properties pass `===` comparison.
632632
* * Both values are NaN. (In JavasScript, NaN == NaN => false. But we consider two NaN as equal)
633633
*
634-
* During a property comparision, properties of `function` type and properties with names
634+
* During a property comparison, properties of `function` type and properties with names
635635
* that begin with `$` are ignored.
636636
*
637637
* Scope and DOMWindow objects are being compared only be identify (`===`).
@@ -838,7 +838,7 @@ function toKeyValue(obj) {
838838

839839

840840
/**
841-
* We need our custom method because encodeURIComponent is too agressive and doesn't follow
841+
* We need our custom method because encodeURIComponent is too aggressive and doesn't follow
842842
* http://www.ietf.org/rfc/rfc3986.txt with regards to the character set (pchar) allowed in path
843843
* segments:
844844
* segment = *pchar
@@ -858,7 +858,7 @@ function encodeUriSegment(val) {
858858

859859
/**
860860
* This method is intended for encoding *key* or *value* parts of query component. We need a custom
861-
* method becuase encodeURIComponent is too agressive and encodes stuff that doesn't have to be
861+
* method because encodeURIComponent is too aggressive and encodes stuff that doesn't have to be
862862
* encoded per http://tools.ietf.org/html/rfc3986:
863863
* query = *( pchar / "/" / "?" )
864864
* pchar = unreserved / pct-encoded / sub-delims / ":" / "@"

src/bootstrap/google-prettify/prettify.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ var REGEXP_PRECEDER_PATTERN = '(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[
643643
* recognized.
644644
*
645645
* Shortcut is an optional string of characters, any of which, if the first
646-
* character, gurantee that this pattern and only this pattern matches.
646+
* character, guarantee that this pattern and only this pattern matches.
647647
*
648648
* @param {Array} shortcutStylePatterns patterns that always start with
649649
* a known character. Must have a shortcut string.

src/jqLite.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
* - [val()](http://api.jquery.com/val/)
6060
* - [wrap()](http://api.jquery.com/wrap/)
6161
*
62-
* ## In addtion to the above, Angular provides additional methods to both jQuery and jQuery lite:
62+
* ## In addition to the above, Angular provides additional methods to both jQuery and jQuery lite:
6363
*
6464
* - `controller(name)` - retrieves the controller of the current element or its parent. By default
6565
* retrieves controller associated with the `ngController` directive. If `name` is provided as

src/ng/browser.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ function Browser(window, document, $log, $sniffer) {
252252
* @methodOf ng.$browser
253253
*
254254
* @param {string=} name Cookie name
255-
* @param {string=} value Cokkie value
255+
* @param {string=} value Cookie value
256256
*
257257
* @description
258258
* The cookies method provides a 'private' low level access to browser cookies.
@@ -314,7 +314,7 @@ function Browser(window, document, $log, $sniffer) {
314314
* @returns {*} DeferId that can be used to cancel the task via `$browser.defer.cancel()`.
315315
*
316316
* @description
317-
* Executes a fn asynchroniously via `setTimeout(fn, delay)`.
317+
* Executes a fn asynchronously via `setTimeout(fn, delay)`.
318318
*
319319
* Unlike when calling `setTimeout` directly, in test this function is mocked and instead of using
320320
* `setTimeout` in tests, the fns are queued in an array, which can be programmatically flushed
@@ -341,7 +341,7 @@ function Browser(window, document, $log, $sniffer) {
341341
* Cancels a defered task identified with `deferId`.
342342
*
343343
* @param {*} deferId Token returned by the `$browser.defer` function.
344-
* @returns {boolean} Returns `true` if the task hasn't executed yet and was successfuly canceled.
344+
* @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully canceled.
345345
*/
346346
self.defer.cancel = function(deferId) {
347347
if (pendingDeferIds[deferId]) {

src/ng/compile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ function $CompileProvider($provide) {
170170
*
171171
* @param {string} name Name of the directive in camel-case. (ie <code>ngBind</code> which will match as
172172
* <code>ng-bind</code>).
173-
* @param {function} directiveFactory An injectable directive factroy function. See {@link guide/directive} for more
173+
* @param {function} directiveFactory An injectable directive factory function. See {@link guide/directive} for more
174174
* info.
175175
* @returns {ng.$compileProvider} Self for chaining.
176176
*/

src/ng/directive/input.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ var VALID_CLASS = 'ng-valid',
805805
* @property {Array.<Function>} $formatters Whenever the model value changes, it executes all of
806806
* these functions to convert the value as well as validate.
807807
*
808-
* @property {Object} $error An bject hash with all errors as keys.
808+
* @property {Object} $error An object hash with all errors as keys.
809809
*
810810
* @property {boolean} $pristine True if user has not interacted with the control yet.
811811
* @property {boolean} $dirty True if user has already interacted with the control.

src/ng/directive/ngBind.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Typically, you don't use `ngBind` directly, but instead you use the double curly markup like
1313
* `{{ expression }}` which is similar but less verbose.
1414
*
15-
* Once scenario in which the use of `ngBind` is prefered over `{{ expression }}` binding is when
15+
* Once scenario in which the use of `ngBind` is preferred over `{{ expression }}` binding is when
1616
* it's desirable to put bindings into template that is momentarily displayed by the browser in its
1717
* raw state before Angular compiles it. Since `ngBind` is an element attribute, it makes the
1818
* bindings invisible to the user while the page is loading.

src/ng/directive/ngCloak.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* directive to avoid the undesirable flicker effect caused by the html template display.
1111
*
1212
* The directive can be applied to the `<body>` element, but typically a fine-grained application is
13-
* prefered in order to benefit from progressive rendering of the browser view.
13+
* preferred in order to benefit from progressive rendering of the browser view.
1414
*
1515
* `ngCloak` works in cooperation with a css rule that is embedded within `angular.js` and
1616
* `angular.min.js` files. Following is the css rule:

src/ng/directive/ngPluralize.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* {@link http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html
2020
* plural categories} in Angular's default en-US locale: "one" and "other".
2121
*
22-
* While a pural category may match many numbers (for example, in en-US locale, "other" can match
22+
* While a plural category may match many numbers (for example, in en-US locale, "other" can match
2323
* any number that is not 1), an explicit number rule can only match one number. For example, the
2424
* explicit number rule for "3" matches the number 3. You will see the use of plural categories
2525
* and explicit number rules throughout later parts of this documentation.
@@ -87,7 +87,7 @@
8787
* plural categories "one" and "other".
8888
*
8989
* @param {string|expression} count The variable to be bounded to.
90-
* @param {string} when The mapping between plural category to its correspoding strings.
90+
* @param {string} when The mapping between plural category to its corresponding strings.
9191
* @param {number=} offset Offset to deduct from the total number.
9292
*
9393
* @example

src/ng/directive/ngSwitch.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* @scope
2121
* @param {*} ngSwitch|on expression to match against <tt>ng-switch-when</tt>.
2222
* @paramDescription
23-
* On child elments add:
23+
* On child elements add:
2424
*
2525
* * `ngSwitchWhen`: the case statement to match against. If match then this
2626
* case will be displayed. If the same match appears multiple times, all the
@@ -59,7 +59,7 @@
5959
select('selection').option('home');
6060
expect(element('.doc-example-live [ng-switch]').text()).toMatch(/Home Span/);
6161
});
62-
it('should select deafault', function() {
62+
it('should select default', function() {
6363
select('selection').option('other');
6464
expect(element('.doc-example-live [ng-switch]').text()).toMatch(/default/);
6565
});

src/ng/filter/orderBy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Orders a specified `array` by the `expression` predicate.
1010
*
1111
* Note: this function is used to augment the `Array` type in Angular expressions. See
12-
* {@link ng.$filter} for more informaton about Angular arrays.
12+
* {@link ng.$filter} for more information about Angular arrays.
1313
*
1414
* @param {Array} array The array to sort.
1515
* @param {function(*)|string|Array.<(function(*)|string)>} expression A predicate to be

src/ng/http.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ function $HttpProvider() {
297297
* `$httpProvider.defaults.headers.get['My-Header']='value'`.
298298
*
299299
* Additionally, the defaults can be set at runtime via the `$http.defaults` object in a similar
300-
* fassion as described above.
300+
* fashion as described above.
301301
*
302302
*
303303
* # Transforming Requests and Responses

src/ng/parse.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -697,11 +697,11 @@ function setter(obj, path, setValue) {
697697
}
698698

699699
/**
700-
* Return the value accesible from the object by path. Any undefined traversals are ignored
700+
* Return the value accessible from the object by path. Any undefined traversals are ignored
701701
* @param {Object} obj starting object
702702
* @param {string} path path to traverse
703703
* @param {boolean=true} bindFnToScope
704-
* @returns value as accesbile by path
704+
* @returns value as accessible by path
705705
*/
706706
//TODO(misko): this function needs to be removed
707707
function getter(obj, path, bindFnToScope) {
@@ -873,7 +873,7 @@ function getterFn(path, csp) {
873873
* @returns {function(context, locals)} a function which represents the compiled expression:
874874
*
875875
* * `context` – `{object}` – an object against which any expressions embedded in the strings
876-
* are evaluated against (tipically a scope object).
876+
* are evaluated against (typically a scope object).
877877
* * `locals` – `{object=}` – local variables context object, useful for overriding values in
878878
* `context`.
879879
*

src/ng/rootScope.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ function $RootScopeProvider(){
736736
* Afterwards, the event propagates to all direct and indirect scopes of the current scope and
737737
* calls all registered listeners along the way. The event cannot be canceled.
738738
*
739-
* Any exception emmited from the {@link ng.$rootScope.Scope#$on listeners} will be passed
739+
* Any exception emitted from the {@link ng.$rootScope.Scope#$on listeners} will be passed
740740
* onto the {@link ng.$exceptionHandler $exceptionHandler} service.
741741
*
742742
* @param {string} name Event name to emit.

src/ng/route.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ function $RouteProvider(){
486486
}
487487

488488
/**
489-
* @returns interpolation of the redirect path with the parametrs
489+
* @returns interpolation of the redirect path with the parameters
490490
*/
491491
function interpolate(string, params) {
492492
var result = [];

src/ng/window.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* A reference to the browser's `window` object. While `window`
99
* is globally available in JavaScript, it causes testability problems, because
1010
* it is a global variable. In angular we always refer to it through the
11-
* `$window` service, so it may be overriden, removed or mocked for testing.
11+
* `$window` service, so it may be overridden, removed or mocked for testing.
1212
*
1313
* All expressions are evaluated with respect to current scope so they don't
1414
* suffer from window globality.

src/ngResource/resource.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727
*
2828
* and you ready to get started!
2929
*
30-
* @param {string} url A parameterized URL template with parameters prefixed by `:` as in
30+
* @param {string} url A parametrized URL template with parameters prefixed by `:` as in
3131
* `/user/:username`. If you are using a URL with a port number (e.g.
3232
* `http://example.com:8080/api`), you'll need to escape the colon character before the port
3333
* number, like this: `$resource('http://example.com\\:8080/api')`.
3434
*
3535
* @param {Object=} paramDefaults Default values for `url` parameters. These can be overridden in
3636
* `actions` methods. If any of the parameter value is a function, it will be executed every time
37-
* when a param value needs to be obtained for a request (unless the param was overriden).
37+
* when a param value needs to be obtained for a request (unless the param was overridden).
3838
*
3939
* Each key value in the parameter object is first bound to url template if present and then any
4040
* excess keys are appended to the url search query after the `?`.
@@ -61,7 +61,7 @@
6161
* and `JSONP`.
6262
* - **`params`** – {Object=} – Optional set of pre-bound parameters for this action. If any of the
6363
* parameter value is a function, it will be executed every time when a param value needs to be
64-
* obtained for a request (unless the param was overriden).
64+
* obtained for a request (unless the param was overridden).
6565
* - **`url`** – {string} – action specific `url` override. The url templating is supported just like
6666
* for the resource-level urls.
6767
* - **`isArray`** – {boolean=} – If true then the returned object for this action is an array, see
@@ -296,7 +296,7 @@ angular.module('ngResource', ['ng']).
296296

297297
/**
298298
* This method is intended for encoding *key* or *value* parts of query component. We need a custom
299-
* method becuase encodeURIComponent is too agressive and encodes stuff that doesn't have to be
299+
* method because encodeURIComponent is too aggressive and encodes stuff that doesn't have to be
300300
* encoded per http://tools.ietf.org/html/rfc3986:
301301
* query = *( pchar / "/" / "?" )
302302
* pchar = unreserved / pct-encoded / sub-delims / ":" / "@"

src/ngScenario/Scenario.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ angular.scenario.setUpAndRun = function(config) {
145145

146146
/**
147147
* Iterates through list with iterator function that must call the
148-
* continueFunction to continute iterating.
148+
* continueFunction to continue iterating.
149149
*
150150
* @param {Array} list list to iterate over
151151
* @param {function()} iterator Callback function(value, continueFunction)

0 commit comments

Comments
 (0)