mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
a0b998e293
Use signals to avoid markForCheck. Simplify takeUntilDestroyed usage by relying on implicit DestroyRef. Improve type safety by typing inject(ElementRef).
18 lines
423 B
TypeScript
18 lines
423 B
TypeScript
/*!
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.dev/license
|
|
*/
|
|
|
|
import {Pipe, PipeTransform} from '@angular/core';
|
|
import {getRelativeUrl} from '../utils/index';
|
|
|
|
@Pipe({
|
|
name: 'relativeLink',
|
|
})
|
|
export class RelativeLink implements PipeTransform {
|
|
transform = getRelativeUrl;
|
|
}
|