mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This is a relativelly small refactoring to a couple of adev components. The goal here is to use new reactive APIs in the idiomatic way. PR Close #58357
25 lines
868 B
TypeScript
25 lines
868 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 {ChangeDetectionStrategy, Component, input} from '@angular/core';
|
|
import {RouterLink} from '@angular/router';
|
|
import {ApiItemsGroup} from '../interfaces/api-items-group';
|
|
import ApiItemLabel from '../api-item-label/api-item-label.component';
|
|
import {IconComponent} from '@angular/docs';
|
|
|
|
@Component({
|
|
selector: 'adev-api-items-section',
|
|
standalone: true,
|
|
imports: [ApiItemLabel, RouterLink, IconComponent],
|
|
templateUrl: './api-items-section.component.html',
|
|
styleUrls: ['./api-items-section.component.scss'],
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
})
|
|
export default class ApiItemsSection {
|
|
group = input.required<ApiItemsGroup>();
|
|
}
|