Skip to content

Commit 2786b51

Browse files
fix: using OnPush as changeDetection mechanism to component
1 parent 0f26434 commit 2786b51

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased][]
99

10+
### Updated
11+
12+
- Using OnPush as changeDetection mechanism into ngx-skeleton-loader component
13+
1014
## [2.6.2][] - 2020-12-08
1115

1216
### Fixed
@@ -335,7 +339,5 @@ Now we can define the animation we want to use in `<ngx-skeleton-loader>` compon
335339
[2.6.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.6.0
336340
[unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.6.1...HEAD
337341
[2.6.1]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.6.1
338-
339-
340-
[Unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.6.2...HEAD
341-
[2.6.2]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.6.2
342+
[unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.6.2...HEAD
343+
[2.6.2]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.6.2

projects/ngx-skeleton-loader/src/lib/ngx-skeleton-loader.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
import { Component, OnInit, Input, isDevMode, OnDestroy, AfterViewInit } from '@angular/core';
1+
import { Component, OnInit, Input, isDevMode, OnDestroy, AfterViewInit, ChangeDetectionStrategy } from '@angular/core';
22
import { start, end } from 'perf-marks/marks';
33

44
@Component({
55
selector: 'ngx-skeleton-loader',
66
templateUrl: './ngx-skeleton-loader.html',
77
styleUrls: ['./ngx-skeleton-loader.scss'],
8+
changeDetection: ChangeDetectionStrategy.OnPush,
89
})
910
export class NgxSkeletonLoaderComponent implements OnInit, AfterViewInit, OnDestroy {
1011
@Input()

0 commit comments

Comments
 (0)