Skip to content

Commit

Permalink
Step 8.4: Added data subscription on the main component
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha authored and Dotan Simha committed Nov 22, 2016
1 parent 3139d3c commit 9dc2a5c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions client/imports/main.component.ts
@@ -1,9 +1,18 @@
import '/imports/startup/client';
import {Component} from "@angular/core";
import {Component, OnInit} from "@angular/core";
import {MeteorObservable} from "meteor-rxjs";

@Component({
selector: 'app',
template: '<router-outlet></router-outlet>'
})
export class MainComponent {
export class MainComponent implements OnInit {
constructor() {

}

ngOnInit() {
MeteorObservable.subscribe("lists.public").subscribe();
MeteorObservable.subscribe("lists.private").subscribe();
}
}

0 comments on commit 9dc2a5c

Please sign in to comment.