feat(privacy-policy.component): create privacy-polic using pdf-viewer

This commit is contained in:
tekh 2025-08-07 13:42:48 +02:00
parent 4c99e1cbee
commit cb9c7694db
4 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,4 @@
<pdf-viewer [src]="pdfSrc"
[render-text]="true"
[original-size]="true"
></pdf-viewer>

View File

@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { PrivacyPolicyComponent } from './privacy-policy.component';
describe('PrivacyPolicyComponent', () => {
let component: PrivacyPolicyComponent;
let fixture: ComponentFixture<PrivacyPolicyComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [PrivacyPolicyComponent]
})
.compileComponents();
fixture = TestBed.createComponent(PrivacyPolicyComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -0,0 +1,13 @@
import { Component, Input } from '@angular/core';
import { PdfViewerModule } from 'ng2-pdf-viewer';
@Component({
selector: 'app-privacy-policy',
standalone: true,
imports: [PdfViewerModule],
templateUrl: './privacy-policy.component.html',
styleUrl: './privacy-policy.component.scss'
})
export class PrivacyPolicyComponent {
@Input('pdfSrc') pdfSrc: string = 'pdfSrc';
}