Skip to content

Commit

Permalink
Step 10.2: Use the new template and added stub methods
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 d69765d commit e6ac757
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions client/imports/main.component.ts
@@ -1,18 +1,31 @@
import '/imports/startup/client';
import {Component, OnInit} from "@angular/core";
import {MeteorObservable} from "meteor-rxjs";
import {Meteor} from "meteor/meteor";

@Component({
selector: 'app',
template: '<router-outlet></router-outlet>'
templateUrl: '/client/imports/main-component.html'
})
export class MainComponent implements OnInit {
constructor() {
private isCordova : boolean;
private menuOpen : boolean = false;
private userMenuOpen : boolean = false;

constructor() {
this.isCordova = Meteor.isCordova;
}

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

isConnected() {
return true;
}

get userEmail() {
return "";
}
}

0 comments on commit e6ac757

Please sign in to comment.