From 9480136d9f062ec4b8df0a35914b48c0d61e0002 Mon Sep 17 00:00:00 2001 From: Pascal Borreli Date: Thu, 21 Mar 2013 19:09:47 +0000 Subject: docs(*): fixed typos --- src/ng/directive/input.js | 2 +- src/ng/directive/ngBind.js | 2 +- src/ng/directive/ngCloak.js | 2 +- src/ng/directive/ngPluralize.js | 4 ++-- src/ng/directive/ngSwitch.js | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/ng/directive') 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.} $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 `` 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 ng-switch-when. * @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/); }); -- cgit v1.2.3