Skip to content

Commit

Permalink
chore:🌻 remove unused statements
Browse files Browse the repository at this point in the history
  • Loading branch information
NsdHSO committed Nov 4, 2023
1 parent 3d3518d commit 5c7609c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
4 changes: 0 additions & 4 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
<div *ngIf="user$ | async as user">
{{ user | json }}
</div>

<div class="bg-slate-200 dark:bg-cyan-900">
<router-outlet></router-outlet>
</div>
12 changes: 1 addition & 11 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { AsyncPipe, JsonPipe, NgIf } from '@angular/common';
import { HttpClient } from '@angular/common/http';
import { ChangeDetectionStrategy, Component, inject } from '@angular/core';
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { RouterModule } from '@angular/router';
import { of, switchMap } from 'rxjs';

@Component({
standalone: true,
Expand All @@ -13,13 +11,5 @@ import { of, switchMap } from 'rxjs';
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class AppComponent {
http = inject(HttpClient);

user$ = this.http
.get(
'https://c60a8243-8834-4f11-8bde-e50b84c00883.mock.pstmn.io/localhost:3000'
)
.pipe(switchMap((v) => of(JSON.stringify(v))));

title = 'coagulu';
}

0 comments on commit 5c7609c

Please sign in to comment.