"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/ng/directive/ngRepeat.js" between
angular.js-1.7.9.tar.gz and angular.js-1.8.0.tar.gz

About: AngularJS is a web application framework that assists with creating single-page applications that only require HTML, CSS, and JavaScript on the client side.

ngRepeat.js  (angular.js-1.7.9):ngRepeat.js  (angular.js-1.8.0)
skipping to change at line 335 skipping to change at line 335
* `item in items | filter:searchText as results track by item.id` * `item in items | filter:searchText as results track by item.id`
* </div> * </div>
* *
* * `variable in expression as alias_expression` – You can also provide an op tional alias expression which will then store the * * `variable in expression as alias_expression` – You can also provide an op tional alias expression which will then store the
* intermediate results of the repeater after the filters have been applied. Typically this is used to render a special message * intermediate results of the repeater after the filters have been applied. Typically this is used to render a special message
* when a filter is active on the repeater, but the filtered result set is e mpty. * when a filter is active on the repeater, but the filtered result set is e mpty.
* *
* For example: `item in items | filter:x as results` will store the fragmen t of the repeated items as `results`, but only after * For example: `item in items | filter:x as results` will store the fragmen t of the repeated items as `results`, but only after
* the items have been processed through the filter. * the items have been processed through the filter.
* *
* Please note that `as [variable name] is not an operator but rather a part of ngRepeat * Please note that `as [variable name]` is not an operator but rather a par t of ngRepeat
* micro-syntax so it can be used only after all filters (and not as operato r, inside an expression). * micro-syntax so it can be used only after all filters (and not as operato r, inside an expression).
* *
* For example: `item in items | filter : x | orderBy : order | limitTo : li mit as results track by item.id` . * For example: `item in items | filter : x | orderBy : order | limitTo : li mit as results track by item.id` .
* *
* @example * @example
* This example uses `ngRepeat` to display a list of people. A filter is used to restrict the displayed * This example uses `ngRepeat` to display a list of people. A filter is used to restrict the displayed
* results by name or by age. New (entering) and removed (leaving) items are ani mated. * results by name or by age. New (entering) and removed (leaving) items are ani mated.
<example module="ngRepeat" name="ngRepeat" deps="angular-animate.js" animation s="true"> <example module="ngRepeat" name="ngRepeat" deps="angular-animate.js" animation s="true">
<file name="index.html"> <file name="index.html">
<div ng-controller="repeatController"> <div ng-controller="repeatController">
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)