created UserCollectionEntryComponent
This commit is contained in:
1 parent
89f8044c0b
commit
bca1b789b3
4 files changed
+53
No files matched your search
+12
@@ -0,0 +1,12 @@
|
||||
.movies-container {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill,
|
||||
minmax(160px, 2fr));
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.pagination-container {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
<div class="movies-container">
|
||||
<app-list-entry-card *ngFor="let entry of entries" [entry]="entry" [listId]="listId"
|
||||
(refrechEvent)="refrechEventReceiver()"></app-list-entry-card>
|
||||
</div>
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { UserCollectionEntryGridComponent } from './user-collection-entry-grid.component';
|
||||
|
||||
describe('UserCollectionEntryGridComponent', () => {
|
||||
let component: UserCollectionEntryGridComponent;
|
||||
let fixture: ComponentFixture<UserCollectionEntryGridComponent>;
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [UserCollectionEntryGridComponent]
|
||||
});
|
||||
fixture = TestBed.createComponent(UserCollectionEntryGridComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import { Component, Input } from '@angular/core';
|
||||
import { Entry } from '../../../shared/models/entry.model';
|
||||
|
||||
@Component({
|
||||
selector: 'app-user-collection-entry-grid',
|
||||
templateUrl: './user-collection-entry-grid.component.html',
|
||||
styleUrls: ['./user-collection-entry-grid.component.css'],
|
||||
})
|
||||
export class UserCollectionEntryGridComponent {
|
||||
@Input() entries: Entry[] = [];
|
||||
@Input() listId: string = '';
|
||||
|
||||
refrechEventReceiver() {
|
||||
console.log('event recieved');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user