Skip to content

Commit

Permalink
feat(sponsors): provide datasource to the list component
Browse files Browse the repository at this point in the history
  • Loading branch information
matheo committed Jun 16, 2019
1 parent 19ac14e commit 3477227
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/app/features/sponsors/data/index.ts
@@ -0,0 +1,3 @@
export * from './sponsors.database';
export * from './sponsors.datasource';
export * from './sponsors.types';
2 changes: 1 addition & 1 deletion src/app/features/sponsors/list/list.component.html
Expand Up @@ -6,6 +6,6 @@ <h2>Sponsors</h2>
filter and paginator.
</p>

<app-feat-sponsors-list-table></app-feat-sponsors-list-table>
<app-feat-sponsors-list-table [source]="source"></app-feat-sponsors-list-table>

<app-feat-sponsors-list-filter></app-feat-sponsors-list-filter>
6 changes: 4 additions & 2 deletions src/app/features/sponsors/list/list.component.ts
@@ -1,12 +1,14 @@
import { Component, OnInit } from '@angular/core';
import { SponsorsDatasource } from '../data';

@Component({
selector: 'app-feat-sponsors-list',
templateUrl: './list.component.html',
styleUrls: ['./list.component.scss']
styleUrls: ['./list.component.scss'],
providers: [SponsorsDatasource]
})
export class SponsorsListComponent implements OnInit {
constructor() {}
constructor(public source: SponsorsDatasource) {}

ngOnInit() {}
}

0 comments on commit 3477227

Please sign in to comment.