feat(privacy-policy.component): create privacy-polic using pdf-viewer
This commit is contained in:
parent
4c99e1cbee
commit
cb9c7694db
@ -0,0 +1,4 @@
|
|||||||
|
<pdf-viewer [src]="pdfSrc"
|
||||||
|
[render-text]="true"
|
||||||
|
[original-size]="true"
|
||||||
|
></pdf-viewer>
|
||||||
@ -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();
|
||||||
|
});
|
||||||
|
});
|
||||||
@ -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';
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user