Guest User

Untitled

a guest
May 24th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. import { Store } from '@ngrx/store'; // <-- u are a bad habit :(
  2. //
  3. // CommitsContainer is holding a list of git commits of a given user
  4. //
  5. @Component({
  6. selector: 'commits-container',
  7. templateUrl: './commits.container.html',
  8. styleUrls: ['./commits.container.scss'],
  9. changeDetection: ChangeDetectionStrategy.OnPush
  10. })
  11. export class CommitsContainer {
  12. commits: Observable<Commit[]>;
  13.  
  14. constructor(private store: Store<any>) {
  15. this.store.dispatch(new LoadCommitAction('christian'));
  16. }
  17. }
Add Comment
Please, Sign In to add comment