Skip to content

Commit c7ca41f

Browse files
Merge pull request #411 from ngx-builders/feat--use-onPush-for-all-components
fix: update cd to onPush
2 parents e2a9dc1 + 9e82661 commit c7ca41f

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

projects/bulma-app/src/app/modal/modal.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import { CommonModule } from '@angular/common';
22
import { HttpClient } from '@angular/common/http';
33
import { NgModule } from '@angular/core';
44
import { BulmaModalModule } from 'ngx-bulma';
5+
import { BulmaButtonModule } from 'ngx-bulma';
56
import { MarkdownModule } from 'ngx-markdown';
67
import { ModalRoutingModule } from './modal-routing.module';
78
import { ModalComponent } from './modal.component';
8-
import { BulmaButtonModule } from 'ngx-bulma';
99

1010
@NgModule({
1111
declarations: [ModalComponent],
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
import { Component, OnInit } from '@angular/core';
1+
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
22

33
@Component({
44
selector: 'bu-card',
55
templateUrl: './card.component.html',
6-
styleUrls: ['./card.component.css']
6+
styleUrls: ['./card.component.css'],
7+
changeDetection: ChangeDetectionStrategy.OnPush,
78
})
89
export class BulmaCardComponent implements OnInit {
10+
constructor() {}
911

10-
constructor() { }
11-
12-
ngOnInit() {
13-
}
14-
12+
ngOnInit() {}
1513
}

0 commit comments

Comments
 (0)