diff --git a/src/ng/compile.js b/src/ng/compile.js index 1268cbc59a9a..0aba65aec107 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -621,8 +621,8 @@ }]);
-
-
+
+
@@ -659,7 +659,7 @@ * * `cloneAttachFn` - If `cloneAttachFn` is provided, then the link function will clone the * `template` and call the `cloneAttachFn` function allowing the caller to attach the * cloned elements to the DOM document at the appropriate place. The `cloneAttachFn` is - * called as:
`cloneAttachFn(clonedElement, scope)` where: + * called as:
`cloneAttachFn(clonedElement, scope)` where: * * * `clonedElement` - is a clone of the original `element` passed into the compiler. * * `scope` - is the current scope with which the linking function is working with. diff --git a/src/ng/directive/attrs.js b/src/ng/directive/attrs.js index e22a7892e4e9..6854df03aaf6 100644 --- a/src/ng/directive/attrs.js +++ b/src/ng/directive/attrs.js @@ -113,12 +113,12 @@ * * The buggy way to write it: * ```html - * + * Description * ``` * * The correct way to write it: * ```html - * + * Description * ``` * * @element IMG @@ -139,12 +139,12 @@ * * The buggy way to write it: * ```html - * + * Description * ``` * * The correct way to write it: * ```html - * + * Description * ``` * * @element IMG @@ -181,7 +181,7 @@ * @example - Click me to toggle:
+
@@ -216,8 +216,8 @@ * @example - Check me to check both:
- +
+
it('should check both checkBoxes', function() { @@ -251,8 +251,8 @@ * @example - Check me to make text readonly:
- +
+
it('should toggle readonly attr', function() { @@ -287,8 +287,8 @@ * @example - Check me to select:
-
+ @@ -324,7 +324,7 @@ * @example - Check me check multiple:
+
Show/Hide me
diff --git a/src/ng/directive/input.js b/src/ng/directive/input.js index e9b781bcf320..778eda83eda0 100644 --- a/src/ng/directive/input.js +++ b/src/ng/directive/input.js @@ -68,13 +68,16 @@ var inputType = { }]);
- Single word: - - Required! - - Single word only! - + +
+ + Required! + + Single word only! +
text = {{example.text}}
myForm.input.$valid = {{myForm.input.$valid}}
myForm.input.$error = {{myForm.input.$error}}
@@ -153,13 +156,15 @@ var inputType = { }]); - Pick a date in 2013: + - - Required! - - Not a valid date! +
+ + Required! + + Not a valid date! +
value = {{example.value | date: "yyyy-MM-dd"}}
myForm.input.$valid = {{myForm.input.$valid}}
myForm.input.$error = {{myForm.input.$error}}
@@ -246,13 +251,15 @@ var inputType = { }]); - Pick a date between in 2013: + - - Required! - - Not a valid date! +
+ + Required! + + Not a valid date! +
value = {{example.value | date: "yyyy-MM-ddTHH:mm:ss"}}
myForm.input.$valid = {{myForm.input.$valid}}
myForm.input.$error = {{myForm.input.$error}}
@@ -340,13 +347,15 @@ var inputType = { }]); - Pick a between 8am and 5pm: + - - Required! - - Not a valid date! +
+ + Required! + + Not a valid date! +
value = {{example.value | date: "HH:mm:ss"}}
myForm.input.$valid = {{myForm.input.$valid}}
myForm.input.$error = {{myForm.input.$error}}
@@ -433,13 +442,17 @@ var inputType = { }]); - Pick a date between in 2013: - - - Required! - - Not a valid date! + +
+ + Required! + + Not a valid date! +
value = {{example.value | date: "yyyy-Www"}}
myForm.input.$valid = {{myForm.input.$valid}}
myForm.input.$error = {{myForm.input.$error}}
@@ -526,13 +539,15 @@ var inputType = { }]); - Pick a month in 2013: + - - Required! - - Not a valid month! +
+ + Required! + + Not a valid month! +
value = {{example.value | date: "yyyy-MM"}}
myForm.input.$valid = {{myForm.input.$valid}}
myForm.input.$error = {{myForm.input.$error}}
@@ -629,12 +644,16 @@ var inputType = { }]); - Number: - - Required! - - Not valid number! + +
+ + Required! + + Not valid number! +
value = {{example.value}}
myForm.input.$valid = {{myForm.input.$valid}}
myForm.input.$error = {{myForm.input.$error}}
@@ -719,11 +738,15 @@ var inputType = { }]); - URL: - - Required! - - Not valid url! +
diff --git a/src/ng/directive/ngBind.js b/src/ng/directive/ngBind.js index 8f47eacfead0..37660a75ba52 100644 --- a/src/ng/directive/ngBind.js +++ b/src/ng/directive/ngBind.js @@ -35,7 +35,7 @@ }]);
- Enter name:
+
Hello !
@@ -96,8 +96,8 @@ var ngBindDirective = ['$compile', function($compile) { }]);
- Salutation:
- Name:
+
+

        
diff --git a/src/ng/directive/ngClass.js b/src/ng/directive/ngClass.js index af8d07388cd7..cd1f6241efd3 100644 --- a/src/ng/directive/ngClass.js +++ b/src/ng/directive/ngClass.js @@ -161,21 +161,34 @@ function classDirective(name, selector) {

Map Syntax Example

- deleted (apply "strike" class)
- important (apply "bold" class)
- error (apply "red" class) +
+
+

Using String Syntax

- +

Using Array Syntax

-
-
-
+
+
+

Using Array and Map Syntax

-
- warning (apply "orange" class) +
+
.strike { diff --git a/src/ng/directive/ngController.js b/src/ng/directive/ngController.js index e759d2b5c1b2..a0eb57ea94cf 100644 --- a/src/ng/directive/ngController.js +++ b/src/ng/directive/ngController.js @@ -64,20 +64,20 @@ * * *
- * Name: - * [ greet ]
+ * + *
* Contact: *
    *
  • - * * * * - * - * [ clear - * | X ] + * + * + * *
  • - *
  • [ add ]
  • + *
  • *
*
*
@@ -147,20 +147,20 @@ * * *
- * Name: - * [ greet ]
+ * + *
* Contact: *
    *
  • - * * * * - * - * [ clear - * | X ] + * + * + * *
  • - *
  • [ add ]
  • + *
  • [ ]
  • *
*
*
diff --git a/src/ng/directive/ngIf.js b/src/ng/directive/ngIf.js index 5ad6c1d66ca1..8a1f7ee0153d 100644 --- a/src/ng/directive/ngIf.js +++ b/src/ng/directive/ngIf.js @@ -46,7 +46,7 @@ * @example - Click me:
+
Show when checked: This is removed when the checkbox is unchecked. diff --git a/src/ng/directive/ngList.js b/src/ng/directive/ngList.js index 7415336cc266..0b48853eb07d 100644 --- a/src/ng/directive/ngList.js +++ b/src/ng/directive/ngList.js @@ -30,9 +30,11 @@ *
* *
- * List: - * + * + * + * * Required! + * *
* names = {{names}}
* myForm.namesInput.$valid = {{myForm.namesInput.$valid}}
diff --git a/src/ng/directive/ngModel.js b/src/ng/directive/ngModel.js index a3446c7ff1a9..119ca7a6f98d 100644 --- a/src/ng/directive/ngModel.js +++ b/src/ng/directive/ngModel.js @@ -192,7 +192,7 @@ is set to `true`. The parse error is stored in `ngModel.$error.parse`. required>Change me! Required!
- +
@@ -474,12 +474,14 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$ *

Now see what happens if you start typing then press the Escape key

* *
- *

With $rollbackViewValue()

- *
+ *

With $rollbackViewValue()

+ *
* myValue: "{{ myValue }}" * - *

Without $rollbackViewValue()

- *
+ *

Without $rollbackViewValue()

+ *
* myValue: "{{ myValue }}" *
* @@ -943,10 +945,13 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$ background: red; } - Update input to see transitions when valid/invalid. - Integer is a valid value. +

+ Update input to see transitions when valid/invalid. + Integer is a valid value. +

- +
*
@@ -976,10 +981,11 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
- Name: - +
user.name = 
@@ -1115,14 +1121,15 @@ var DEFAULT_REGEXP = /(\s+|^)default(\s+|$)/;
- Name: -
- - Other data: -
+
+
user.name = 
@@ -1170,11 +1177,13 @@ var DEFAULT_REGEXP = /(\s+|^)default(\s+|$)/;
- Name: - -
+ + +
user.name = 
@@ -1193,10 +1202,11 @@ var DEFAULT_REGEXP = /(\s+|^)default(\s+|$)/;
- Name: - +
user.name = 
diff --git a/src/ng/directive/ngOptions.js b/src/ng/directive/ngOptions.js index a612613698cd..8c9ec905764f 100644 --- a/src/ng/directive/ngOptions.js +++ b/src/ng/directive/ngOptions.js @@ -148,37 +148,40 @@ var ngOptionsMinErr = minErr('ngOptions');
  • - Name: - Disabled? - [X] + + +
  • - [add] +

- Color (null not allowed): -
- - Color (null allowed): +
+
- Color grouped by shade: -
+
- Color grouped by shade, with some disabled: - -
+ +
- Select bogus.
+ Select . +

Currently selected: {{ {selected_color:myColor} }}
- Person 1:
- Person 2:
- Number of People:
+
+
+
Without Offset: diff --git a/src/ng/directive/ngRepeat.js b/src/ng/directive/ngRepeat.js index 04b9726aa9dd..06180f7022ce 100644 --- a/src/ng/directive/ngRepeat.js +++ b/src/ng/directive/ngRepeat.js @@ -216,7 +216,7 @@ {name:'Samantha', age:60, gender:'girl'} ]"> I have {{friends.length}} friends. They are: - +
  • [{{$index + 1}}] {{friend.name}} who is {{friend.age}} years old. diff --git a/src/ng/directive/ngShowHide.js b/src/ng/directive/ngShowHide.js index dad6f8911f23..4f61a984bcd8 100644 --- a/src/ng/directive/ngShowHide.js +++ b/src/ng/directive/ngShowHide.js @@ -98,7 +98,7 @@ var NG_HIDE_IN_PROGRESS_CLASS = 'ng-hide-animate'; * @example - Click me:
    + Click me:
    Show:
    @@ -263,7 +263,7 @@ var ngShowDirective = ['$animate', function($animate) { * @example - Click me:
    + Click me:
    Show:
    diff --git a/src/ng/directive/ngTransclude.js b/src/ng/directive/ngTransclude.js index 4dd391ae5e93..36201a69ab73 100644 --- a/src/ng/directive/ngTransclude.js +++ b/src/ng/directive/ngTransclude.js @@ -34,8 +34,8 @@ }]);
    -
    -
    +
    +
    {{text}}
    diff --git a/src/ng/filter/filter.js b/src/ng/filter/filter.js index 6e29e2cf5a87..949b44f21edf 100644 --- a/src/ng/filter/filter.js +++ b/src/ng/filter/filter.js @@ -67,7 +67,7 @@ {name:'Julie', phone:'555-8765'}, {name:'Juliette', phone:'555-5678'}]">
    - Search: + @@ -76,10 +76,10 @@
    NamePhone

    - Any:
    - Name only
    - Phone only
    - Equality
    +
    +
    +
    +
    diff --git a/src/ng/filter/filters.js b/src/ng/filter/filters.js index 77c04bdc58a2..fe49719ffa82 100644 --- a/src/ng/filter/filters.js +++ b/src/ng/filter/filters.js @@ -25,7 +25,7 @@ }]);
    -
    +
    default currency symbol ($): {{amount | currency}}
    custom currency identifier (USD$): {{amount | currency:"USD$"}} no fractions (0): {{amount | currency:"USD$":0}} @@ -100,7 +100,7 @@ function currencyFilter($locale) { }]);
    - Enter number:
    +
    Default formatting: {{val | number}}
    No fractions: {{val | number:0}}
    Negative number: {{-val | number:4}} diff --git a/src/ng/filter/limitTo.js b/src/ng/filter/limitTo.js index 02e227686ded..a42ec8caf40f 100644 --- a/src/ng/filter/limitTo.js +++ b/src/ng/filter/limitTo.js @@ -37,11 +37,20 @@ }]);
    - Limit {{numbers}} to: +

    Output numbers: {{ numbers | limitTo:numLimit }}

    - Limit {{letters}} to: +

    Output letters: {{ letters | limitTo:letterLimit }}

    - Limit {{longNumber}} to: +

    Output long number: {{ longNumber | limitTo:longNumberLimit }}

    diff --git a/src/ng/http.js b/src/ng/http.js index 75991b20c57c..e4910219ff51 100644 --- a/src/ng/http.js +++ b/src/ng/http.js @@ -746,11 +746,11 @@ function $HttpProvider() {
    - - +
    diff --git a/src/ng/sce.js b/src/ng/sce.js index 65cdcb4c5138..db87dc0a8d04 100644 --- a/src/ng/sce.js +++ b/src/ng/sce.js @@ -424,7 +424,7 @@ function $SceDelegateProvider() { * Here's an example of a binding in a privileged context: * * ``` - * + * *
    * ``` * diff --git a/src/ng/window.js b/src/ng/window.js index 9a2637973bd8..1b0ebb0d3bbc 100644 --- a/src/ng/window.js +++ b/src/ng/window.js @@ -28,7 +28,7 @@ }]);
    - +
    diff --git a/src/ngMessages/messages.js b/src/ngMessages/messages.js index 5e87a7d4dc71..aa3f0366b83f 100644 --- a/src/ngMessages/messages.js +++ b/src/ngMessages/messages.js @@ -31,8 +31,11 @@ var jqLite = angular.element; * * ```html *
    - * - *
    + * + *
    *
    You did not enter a field
    *
    * Your email must be between 5 and 100 characters long @@ -80,7 +83,7 @@ var jqLite = angular.element; *
    This field is too short
    * * - *
    + *
    *
    *
    * ``` @@ -97,16 +100,18 @@ var jqLite = angular.element; * * * - * - * + * * - *
    + *
    * *
    You did not enter your email address
    * @@ -131,13 +136,15 @@ var jqLite = angular.element; * * ```html * - * - * - *
    + * + *
    *
    You did not enter your email address
    *
    * @@ -151,13 +158,16 @@ var jqLite = angular.element; * that multiple errors can be associated with a single error message: * * ```html - * - *
    + * + *
    *
    You did not enter your email address
    *
    * Your email must be between 5 and 100 characters long @@ -172,7 +182,7 @@ var jqLite = angular.element; * directive. * * ```html - *
    + *
    *
    *
    Please enter something
    *
    @@ -192,7 +202,7 @@ var jqLite = angular.element; * Let's say that our HTML code for our messages container looks like so: * * ```html - *
    + * @@ -258,14 +268,14 @@ angular.module('ngMessages', []) * @usage * ```html * - * + * * ... * ... * ... * * * - * + * ... * ... * ... @@ -282,17 +292,18 @@ angular.module('ngMessages', []) * animations="true" fixBase="true"> * * - * - * - * + * *
    myForm.myName.$error = {{ myForm.myName.$error | json }}
    * - *
    + *
    You did not enter a field
    *
    Your field is too short
    *
    Your field is too long
    @@ -481,12 +492,12 @@ angular.module('ngMessages', []) * @usage * ```html * - * + * ... * * * - * + * ... * * ``` @@ -537,13 +548,13 @@ angular.module('ngMessages', []) * @usage * ```html * - * + * ... * ... * * * - * + * ... * ... *
    NamePhone