aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng
diff options
context:
space:
mode:
Diffstat (limited to 'src/ng')
-rw-r--r--src/ng/browser.js6
-rw-r--r--src/ng/compile.js2
-rw-r--r--src/ng/directive/input.js2
-rw-r--r--src/ng/directive/ngBind.js2
-rw-r--r--src/ng/directive/ngCloak.js2
-rw-r--r--src/ng/directive/ngPluralize.js4
-rw-r--r--src/ng/directive/ngSwitch.js4
-rw-r--r--src/ng/filter/orderBy.js2
-rw-r--r--src/ng/http.js2
-rw-r--r--src/ng/parse.js6
-rw-r--r--src/ng/rootScope.js2
-rw-r--r--src/ng/route.js2
-rw-r--r--src/ng/window.js2
13 files changed, 19 insertions, 19 deletions
diff --git a/src/ng/browser.js b/src/ng/browser.js
index fa050d54..bda372be 100644
--- a/src/ng/browser.js
+++ b/src/ng/browser.js
@@ -252,7 +252,7 @@ function Browser(window, document, $log, $sniffer) {
* @methodOf ng.$browser
*
* @param {string=} name Cookie name
- * @param {string=} value Cokkie value
+ * @param {string=} value Cookie value
*
* @description
* The cookies method provides a 'private' low level access to browser cookies.
@@ -314,7 +314,7 @@ function Browser(window, document, $log, $sniffer) {
* @returns {*} DeferId that can be used to cancel the task via `$browser.defer.cancel()`.
*
* @description
- * Executes a fn asynchroniously via `setTimeout(fn, delay)`.
+ * Executes a fn asynchronously via `setTimeout(fn, delay)`.
*
* Unlike when calling `setTimeout` directly, in test this function is mocked and instead of using
* `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) {
* Cancels a defered task identified with `deferId`.
*
* @param {*} deferId Token returned by the `$browser.defer` function.
- * @returns {boolean} Returns `true` if the task hasn't executed yet and was successfuly canceled.
+ * @returns {boolean} Returns `true` if the task hasn't executed yet and was successfully canceled.
*/
self.defer.cancel = function(deferId) {
if (pendingDeferIds[deferId]) {
diff --git a/src/ng/compile.js b/src/ng/compile.js
index 68a3dca1..94168fe9 100644
--- a/src/ng/compile.js
+++ b/src/ng/compile.js
@@ -170,7 +170,7 @@ function $CompileProvider($provide) {
*
* @param {string} name Name of the directive in camel-case. (ie <code>ngBind</code> which will match as
* <code>ng-bind</code>).
- * @param {function} directiveFactory An injectable directive factroy function. See {@link guide/directive} for more
+ * @param {function} directiveFactory An injectable directive factory function. See {@link guide/directive} for more
* info.
* @returns {ng.$compileProvider} Self for chaining.
*/
diff --git a/src/ng/directive/input.js b/src/ng/directive/input.js
index aaabd103..71456470 100644
--- a/src/ng/directive/input.js
+++ b/src/ng/directive/input.js
@@ -805,7 +805,7 @@ var VALID_CLASS = 'ng-valid',
* @property {Array.<Function>} $formatters Whenever the model value changes, it executes all of
* these functions to convert the value as well as validate.
*
- * @property {Object} $error An bject hash with all errors as keys.
+ * @property {Object} $error An object hash with all errors as keys.
*
* @property {boolean} $pristine True if user has not interacted with the control yet.
* @property {boolean} $dirty True if user has already interacted with the control.
diff --git a/src/ng/directive/ngBind.js b/src/ng/directive/ngBind.js
index 0c99f27d..32e802ce 100644
--- a/src/ng/directive/ngBind.js
+++ b/src/ng/directive/ngBind.js
@@ -12,7 +12,7 @@
* Typically, you don't use `ngBind` directly, but instead you use the double curly markup like
* `{{ expression }}` which is similar but less verbose.
*
- * Once scenario in which the use of `ngBind` is prefered over `{{ expression }}` binding is when
+ * Once scenario in which the use of `ngBind` is preferred over `{{ expression }}` binding is when
* it's desirable to put bindings into template that is momentarily displayed by the browser in its
* raw state before Angular compiles it. Since `ngBind` is an element attribute, it makes the
* bindings invisible to the user while the page is loading.
diff --git a/src/ng/directive/ngCloak.js b/src/ng/directive/ngCloak.js
index 0455dcc9..d46a24f2 100644
--- a/src/ng/directive/ngCloak.js
+++ b/src/ng/directive/ngCloak.js
@@ -10,7 +10,7 @@
* directive to avoid the undesirable flicker effect caused by the html template display.
*
* The directive can be applied to the `<body>` element, but typically a fine-grained application is
- * prefered in order to benefit from progressive rendering of the browser view.
+ * preferred in order to benefit from progressive rendering of the browser view.
*
* `ngCloak` works in cooperation with a css rule that is embedded within `angular.js` and
* `angular.min.js` files. Following is the css rule:
diff --git a/src/ng/directive/ngPluralize.js b/src/ng/directive/ngPluralize.js
index 3938d4e3..a02035ea 100644
--- a/src/ng/directive/ngPluralize.js
+++ b/src/ng/directive/ngPluralize.js
@@ -19,7 +19,7 @@
* {@link http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html
* plural categories} in Angular's default en-US locale: "one" and "other".
*
- * While a pural category may match many numbers (for example, in en-US locale, "other" can match
+ * While a plural category may match many numbers (for example, in en-US locale, "other" can match
* any number that is not 1), an explicit number rule can only match one number. For example, the
* explicit number rule for "3" matches the number 3. You will see the use of plural categories
* and explicit number rules throughout later parts of this documentation.
@@ -87,7 +87,7 @@
* plural categories "one" and "other".
*
* @param {string|expression} count The variable to be bounded to.
- * @param {string} when The mapping between plural category to its correspoding strings.
+ * @param {string} when The mapping between plural category to its corresponding strings.
* @param {number=} offset Offset to deduct from the total number.
*
* @example
diff --git a/src/ng/directive/ngSwitch.js b/src/ng/directive/ngSwitch.js
index 88b1e701..44985737 100644
--- a/src/ng/directive/ngSwitch.js
+++ b/src/ng/directive/ngSwitch.js
@@ -20,7 +20,7 @@
* @scope
* @param {*} ngSwitch|on expression to match against <tt>ng-switch-when</tt>.
* @paramDescription
- * On child elments add:
+ * On child elements add:
*
* * `ngSwitchWhen`: the case statement to match against. If match then this
* case will be displayed. If the same match appears multiple times, all the
@@ -59,7 +59,7 @@
select('selection').option('home');
expect(element('.doc-example-live [ng-switch]').text()).toMatch(/Home Span/);
});
- it('should select deafault', function() {
+ it('should select default', function() {
select('selection').option('other');
expect(element('.doc-example-live [ng-switch]').text()).toMatch(/default/);
});
diff --git a/src/ng/filter/orderBy.js b/src/ng/filter/orderBy.js
index f9f9c09a..88784c92 100644
--- a/src/ng/filter/orderBy.js
+++ b/src/ng/filter/orderBy.js
@@ -9,7 +9,7 @@
* Orders a specified `array` by the `expression` predicate.
*
* Note: this function is used to augment the `Array` type in Angular expressions. See
- * {@link ng.$filter} for more informaton about Angular arrays.
+ * {@link ng.$filter} for more information about Angular arrays.
*
* @param {Array} array The array to sort.
* @param {function(*)|string|Array.<(function(*)|string)>} expression A predicate to be
diff --git a/src/ng/http.js b/src/ng/http.js
index d54e8bd3..ba512ba7 100644
--- a/src/ng/http.js
+++ b/src/ng/http.js
@@ -297,7 +297,7 @@ function $HttpProvider() {
* `$httpProvider.defaults.headers.get['My-Header']='value'`.
*
* Additionally, the defaults can be set at runtime via the `$http.defaults` object in a similar
- * fassion as described above.
+ * fashion as described above.
*
*
* # Transforming Requests and Responses
diff --git a/src/ng/parse.js b/src/ng/parse.js
index 4651fc10..f931f613 100644
--- a/src/ng/parse.js
+++ b/src/ng/parse.js
@@ -697,11 +697,11 @@ function setter(obj, path, setValue) {
}
/**
- * Return the value accesible from the object by path. Any undefined traversals are ignored
+ * Return the value accessible from the object by path. Any undefined traversals are ignored
* @param {Object} obj starting object
* @param {string} path path to traverse
* @param {boolean=true} bindFnToScope
- * @returns value as accesbile by path
+ * @returns value as accessible by path
*/
//TODO(misko): this function needs to be removed
function getter(obj, path, bindFnToScope) {
@@ -873,7 +873,7 @@ function getterFn(path, csp) {
* @returns {function(context, locals)} a function which represents the compiled expression:
*
* * `context` – `{object}` – an object against which any expressions embedded in the strings
- * are evaluated against (tipically a scope object).
+ * are evaluated against (typically a scope object).
* * `locals` – `{object=}` – local variables context object, useful for overriding values in
* `context`.
*
diff --git a/src/ng/rootScope.js b/src/ng/rootScope.js
index 5981b7e7..48ba038f 100644
--- a/src/ng/rootScope.js
+++ b/src/ng/rootScope.js
@@ -736,7 +736,7 @@ function $RootScopeProvider(){
* Afterwards, the event propagates to all direct and indirect scopes of the current scope and
* calls all registered listeners along the way. The event cannot be canceled.
*
- * Any exception emmited from the {@link ng.$rootScope.Scope#$on listeners} will be passed
+ * Any exception emitted from the {@link ng.$rootScope.Scope#$on listeners} will be passed
* onto the {@link ng.$exceptionHandler $exceptionHandler} service.
*
* @param {string} name Event name to emit.
diff --git a/src/ng/route.js b/src/ng/route.js
index e47f8a5a..b52f4351 100644
--- a/src/ng/route.js
+++ b/src/ng/route.js
@@ -486,7 +486,7 @@ function $RouteProvider(){
}
/**
- * @returns interpolation of the redirect path with the parametrs
+ * @returns interpolation of the redirect path with the parameters
*/
function interpolate(string, params) {
var result = [];
diff --git a/src/ng/window.js b/src/ng/window.js
index a23d2306..8eec7cba 100644
--- a/src/ng/window.js
+++ b/src/ng/window.js
@@ -8,7 +8,7 @@
* A reference to the browser's `window` object. While `window`
* is globally available in JavaScript, it causes testability problems, because
* it is a global variable. In angular we always refer to it through the
- * `$window` service, so it may be overriden, removed or mocked for testing.
+ * `$window` service, so it may be overridden, removed or mocked for testing.
*
* All expressions are evaluated with respect to current scope so they don't
* suffer from window globality.