+
MAIN MENU
-
+
-
About
@@ -52,11 +52,21 @@
-
+
-
-
REVIEWS
+
+
CONTACT
+
+ Toll Free:1-888-422-7737
+
Local: 416-744-2723
+
Fax: 416-744-4078
+
diff --git a/src/app/app.component.ts b/src/app/app.component.ts
index 8658d03..9bb67c2 100644
--- a/src/app/app.component.ts
+++ b/src/app/app.component.ts
@@ -1,16 +1,21 @@
import {Component, OnInit} from '@angular/core';
import {Router} from '@angular/router';
import {ElectronService} from 'ngx-electron';
+import {AngularFirestore} from 'angularfire2/firestore';
@Component({
selector: 'app-root',
templateUrl: 'app.component.html'
})
export class AppComponent implements OnInit {
- constructor(private router: Router, public electron: ElectronService) {}
+ categories;
+
+ constructor(private router: Router, private db: AngularFirestore, public electron: ElectronService) {
+ this.categories = this.db.collection('categories').valueChanges();
+ }
ngOnInit() {
- if(this.electron.isElectronApp) {
+ if (this.electron.isElectronApp) {
this.router.navigate(['/formulaManager']);
}
}