forked from philorg/treetrail-frontend
first commit
This commit is contained in:
commit
62506c830a
1207 changed files with 40706 additions and 0 deletions
29
src/app/app.component.ts
Normal file
29
src/app/app.component.ts
Normal file
|
@ -0,0 +1,29 @@
|
|||
import { Component, OnInit,
|
||||
ChangeDetectorRef, ChangeDetectionStrategy } from '@angular/core'
|
||||
import { DataService } from './data.service'
|
||||
|
||||
import { ActionService } from './action.service'
|
||||
import { AppUpdateService } from './app-update.service'
|
||||
import { ConfigService, settingsDbName } from './config.service'
|
||||
import { combineLatest } from 'rxjs'
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
templateUrl: './app.component.html',
|
||||
styleUrls: ['./app.component.scss'],
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class AppComponent implements OnInit {
|
||||
constructor(
|
||||
public dataService: DataService,
|
||||
public configService: ConfigService,
|
||||
public actionService: ActionService,
|
||||
public appUpdateService: AppUpdateService,
|
||||
public cdr: ChangeDetectorRef,
|
||||
) {}
|
||||
title = 'treetrail'
|
||||
|
||||
ngOnInit(): void {
|
||||
this.actionService.fetchData().subscribe()
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue