File

src/lib/header/reset-button/reset-button.component.ts

Metadata

Index

Properties

Constructor

constructor(resetService: ResetService)
Parameters :
Name Type Optional
resetService ResetService No

Properties

Public Readonly resetService
Type : ResetService
Decorators :
@Inject(ResetService)
import {
  ChangeDetectionStrategy,
  Component,
  Inject,
} from '@angular/core';
import { ResetService } from '@rxap/services';
import { MatIconModule } from '@angular/material/icon';
import { MatButtonModule } from '@angular/material/button';

@Component({
  selector: 'rxap-reset-button',
  templateUrl: './reset-button.component.html',
  styleUrls: [ './reset-button.component.scss' ],
  changeDetection: ChangeDetectionStrategy.OnPush,
  standalone: true,
  imports: [ MatButtonModule, MatIconModule ],
})
export class ResetButtonComponent {
  constructor(
    @Inject(ResetService)
    public readonly resetService: ResetService,
  ) {
  }
}
<button (click)="resetService.resetAll()" mat-icon-button>
  <mat-icon svgIcon="refresh"></mat-icon>
</button>

./reset-button.component.scss

Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""