Angular 2/4/5/6 application performance issue after implementing change detection
up vote
1
down vote
favorite
I have angular6 application, I implemented Change detection in one component using getter,setter methods as like below
constructor(private _cde: ChangeDetectorRef){
this._cde.detach();
}
get assetBreakdownTemplates() {
return this._assetBreakdownTemplates;
}
set assetBreakdownTemplates(value) {
this._assetBreakdownTemplates = value;
this.DetectChanges();
}
DetectChanges() {
this._cde.detectChanges();
}
The issue is due this change detection when i click on any drop down's,popup's in the page, these are responding late because change detector running inside
can some one help on this.
angular performance angular5 angular6 detect
add a comment |
up vote
1
down vote
favorite
I have angular6 application, I implemented Change detection in one component using getter,setter methods as like below
constructor(private _cde: ChangeDetectorRef){
this._cde.detach();
}
get assetBreakdownTemplates() {
return this._assetBreakdownTemplates;
}
set assetBreakdownTemplates(value) {
this._assetBreakdownTemplates = value;
this.DetectChanges();
}
DetectChanges() {
this._cde.detectChanges();
}
The issue is due this change detection when i click on any drop down's,popup's in the page, these are responding late because change detector running inside
can some one help on this.
angular performance angular5 angular6 detect
The change detection system propagates bindings from the root to leaves.
– Sreehari Ballampalli
Nov 8 at 9:57
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have angular6 application, I implemented Change detection in one component using getter,setter methods as like below
constructor(private _cde: ChangeDetectorRef){
this._cde.detach();
}
get assetBreakdownTemplates() {
return this._assetBreakdownTemplates;
}
set assetBreakdownTemplates(value) {
this._assetBreakdownTemplates = value;
this.DetectChanges();
}
DetectChanges() {
this._cde.detectChanges();
}
The issue is due this change detection when i click on any drop down's,popup's in the page, these are responding late because change detector running inside
can some one help on this.
angular performance angular5 angular6 detect
I have angular6 application, I implemented Change detection in one component using getter,setter methods as like below
constructor(private _cde: ChangeDetectorRef){
this._cde.detach();
}
get assetBreakdownTemplates() {
return this._assetBreakdownTemplates;
}
set assetBreakdownTemplates(value) {
this._assetBreakdownTemplates = value;
this.DetectChanges();
}
DetectChanges() {
this._cde.detectChanges();
}
The issue is due this change detection when i click on any drop down's,popup's in the page, these are responding late because change detector running inside
can some one help on this.
angular performance angular5 angular6 detect
angular performance angular5 angular6 detect
edited 2 days ago
asked Nov 8 at 8:47
Sreehari Ballampalli
3871215
3871215
The change detection system propagates bindings from the root to leaves.
– Sreehari Ballampalli
Nov 8 at 9:57
add a comment |
The change detection system propagates bindings from the root to leaves.
– Sreehari Ballampalli
Nov 8 at 9:57
The change detection system propagates bindings from the root to leaves.
– Sreehari Ballampalli
Nov 8 at 9:57
The change detection system propagates bindings from the root to leaves.
– Sreehari Ballampalli
Nov 8 at 9:57
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53204203%2fangular-2-4-5-6-application-performance-issue-after-implementing-change-detectio%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
The change detection system propagates bindings from the root to leaves.
– Sreehari Ballampalli
Nov 8 at 9:57