We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a22464 commit e6eb221Copy full SHA for e6eb221
src/Server/Coderr.Server.WebSite/ClientApp/src/app/home/tips/tips.component.ts
@@ -1,15 +1,22 @@
1
import { Component, OnInit } from '@angular/core';
2
+import { ApplicationService } from "../../applications/application.service";
3
4
@Component({
5
selector: 'app-tips',
6
templateUrl: './tips.component.html',
7
styleUrls: ['./tips.component.scss']
8
})
9
export class TipsComponent implements OnInit {
10
+ firstApplicationId = 0;
11
- constructor() { }
12
+ constructor(private appService: ApplicationService) { }
13
14
ngOnInit(): void {
15
+ this.appService.list().then(apps => {
16
+ if (apps.length > 0) {
17
+ this.firstApplicationId = apps[0].id;
18
+ }
19
+ });
20
}
21
22
0 commit comments