debugging ten thousand lines of code around a week found out happening due to ngDoCheck
$10-30 USD
ปิดแล้ว
โพสต์ มากกว่า 6 ปีที่ผ่านมา
$10-30 USD
ชำระเงินเมื่อส่งงาน
- I am trying to increase the count of the operations performed
**animalEvolution File**
- I am able to increase the value in this method animalActionsRecordedTimely but after I pass into this method ngDoCheck I dont see increase in value.
- so I added ngDoCheck in my file animalEvolution itself but still its taking to animalBreath file ngDoCheck
- I tested by keeping debugger after I did stepover for this line **[login to view URL]([login to view URL](true,[], sourceData));** and saw it in the console using this line [login to view URL] I saw the value changed to 1.
- but after it reaches ngDoCheck and there in the console if I see the value the value got changed to 0 for this line [login to view URL]
**animalBreath File**
- same functionality they use it another file but there the value is increasing in both the methods animalsSwimmingAllRecordedNight and ngDoCheck
- value got increased due to this statement **[login to view URL] = this.animalsAliveIncrement+1;** and [login to view URL]([login to view URL](true,[], sourceData));
- Each file is 10,000 lines of code, so I posting each file in separate gist.
- When I was debugging I came to see three different ngfactory files not sure why its happening and a VM file too
- can you tell me how to fix it
**animalEvolution File**
[login to view URL]
**animalBreath File**
[login to view URL]
animalActionsRecordedTimely(textName: any) {
if ([login to view URL]) {
[login to view URL] = [login to view URL][[login to view URL]].eventName;
[login to view URL][[login to view URL]].eventName = textName;
if([login to view URL]>0){
this.animalsDeathDecrement=0;
[login to view URL] = true;
[login to view URL]([login to view URL]);
}
//let sourceData = {"animalsTalking":[login to view URL],"destinationEvent":[login to view URL],"occurence":[login to view URL],"action":[login to view URL]};
let sourceData = {"animalsTalking":textName};
[login to view URL] = this.animalsAliveIncrement+1;
//[login to view URL]([login to view URL]);
//[login to view URL]([login to view URL]);
[login to view URL](textName);
[login to view URL](textName);
[login to view URL]([login to view URL](true,[], sourceData));
return;
}
if (textName == undefined || textName=='')
{
$("#AnimalsTeethNameError").addClass('mandatoryField');
$('#txtArea').attr("title","Event description can not be empty.");
$('#AnimalsTeethNameTxt').addClass('actionanimalsJeansd');
}
else
{
[login to view URL]();
[login to view URL]();
}
[login to view URL]({ "name": textName, "aptDate": [login to view URL]});
[login to view URL]();
[login to view URL]();
}
undo(){