Skip to content

Commit

Permalink
refactor: use OnPush on all components
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Marín committed Apr 13, 2024
1 parent 00a9e73 commit d32fbb9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { inject } from "@angular/core";
import {ChangeDetectionStrategy, inject} from "@angular/core";
import {Component, OnInit} from '@angular/core';
import {DemoAdapter} from './adapters/demo-adapter';
import {ChatUser, ChatUserStatus} from '../../projects/ng-talk/src/lib/models/chat-user';
Expand All @@ -10,12 +10,14 @@ import {NgTalkChannelListComponent} from "../../projects/ng-talk/src/public_api"
@Component({
selector: 'app-root',
standalone: true,
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [FormsModule, NgTalkChannelListComponent],
templateUrl: './app.component.html',
styleUrls: ['./app.component.less']
})
export class AppComponent implements OnInit {
public demoAdapter = inject(DemoAdapter);
public demoAdapter = inject(DemoAdapter);

public adapter: ChatAdapter;
public chatSettings = new NgTalkSettings({
showAvatars: true,
Expand Down

0 comments on commit d32fbb9

Please sign in to comment.