@angular/core 11.2.2 → 11.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v11.2.2
2
+ * @license Angular v11.2.3
3
3
  * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -5141,20 +5141,19 @@ declare type PipeDefListOrFactory = (() => PipeDefList) | PipeDefList;
5141
5141
  *
5142
5142
  * @usageNotes
5143
5143
  *
5144
- * In the following example, `RepeatPipe` repeats a given value a given number of times.
5144
+ * In the following example, `TruncatePipe` returns the shortened value with an added ellipses.
5145
5145
  *
5146
- * ```ts
5147
- * import {Pipe, PipeTransform} from '@angular/core';
5146
+ * <code-example path="core/ts/pipes/simple_truncate.ts" header="simple_truncate.ts"></code-example>
5148
5147
  *
5149
- * @Pipe({name: 'repeat'})
5150
- * export class RepeatPipe implements PipeTransform {
5151
- * transform(value: any, times: number) {
5152
- * return value.repeat(times);
5153
- * }
5154
- * }
5155
- * ```
5148
+ * Invoking `{{ 'It was the best of times' | truncate }}` in a template will produce `It was...`.
5149
+ *
5150
+ * In the following example, `TruncatePipe` takes parameters that sets the truncated length and the
5151
+ * string to append with.
5152
+ *
5153
+ * <code-example path="core/ts/pipes/truncate.ts" header="truncate.ts"></code-example>
5156
5154
  *
5157
- * Invoking `{{ 'ok' | repeat:3 }}` in a template produces `okokok`.
5155
+ * Invoking `{{ 'It was the best of times' | truncate:4:'....' }}` in a template will produce `It
5156
+ * was the best....`.
5158
5157
  *
5159
5158
  * @publicApi
5160
5159
  */