Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Step 8.4: Added data subscription on the main component
- Loading branch information
1 parent
3139d3c
commit 9dc2a5c
Showing
1 changed file
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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(); | ||
} | ||
} |