Angular ngFor trackBy

  Рет қаралды 143,473

kudvenkat

kudvenkat

Күн бұрын

Пікірлер: 53
@sammyyou7712
@sammyyou7712 6 жыл бұрын
I used this in my project and its working perfectly. Thanks a ton Venkat sir.
@rubbalbhusri4385
@rubbalbhusri4385 5 жыл бұрын
In the last, at 11:22 time of the video, the headings ("Is Even" and "Is Last") got wrongly placed. A minor correction, I searched in the comments, it seems nobody noticed. Your videos are a great start for any beginner and a source of revision of concepts.
@eugenenovikov671
@eugenenovikov671 3 жыл бұрын
your English 50 times better than English of your Indian friends on freeCodeCamp and Udemy, thank u for clear speech
@satheshkumar5906
@satheshkumar5906 2 жыл бұрын
short, simple, and clear, thank you
@dipakranjansahoo5722
@dipakranjansahoo5722 7 жыл бұрын
your tutorials are amazing,sir really i like it sir,i am ur fan
@subhankarshrivastava5638
@subhankarshrivastava5638 6 жыл бұрын
one of the most talented person.
@lifeislove9750
@lifeislove9750 6 жыл бұрын
Ya Thats Right
@laughandtune
@laughandtune 2 жыл бұрын
thanks for all the pain/efforts you took, for this video.
@SUMITKAUSHIK1000
@SUMITKAUSHIK1000 6 жыл бұрын
You are simply great Thanks alot... This is soooo generous that u have given the notes as well I mean I cannot explain I am soo greatful to you
@niluniverse
@niluniverse 7 жыл бұрын
Its like people standing in Queue for iPhone in US / for Rajanikant movie in India. I m standing in queue for Venkat's Videos. I don't know my no in queue.
@nirajrajpurohit1958
@nirajrajpurohit1958 7 жыл бұрын
This is awesome Thanks Sir. Really helpful for me. Please make a video to call the APIs in angular 2.
@prakashgunjari1996
@prakashgunjari1996 5 жыл бұрын
Hi Venkat in the trackByEmpCode method, why do we need those parameters, index and employee. I tried running the code with out those parameters and it worked as expected, i.e with out refreshing the table elements. Infact I even made the return type as Void, it still worked. All the trackBy function would need is an empty method, to work, I think.
@ousamaelidrissi5886
@ousamaelidrissi5886 4 жыл бұрын
Thanks a lot, keep going 👌
@mohsinazamafridi8566
@mohsinazamafridi8566 7 жыл бұрын
Thanks for uploading this,it very nice,seen and implemented ,thanks @Venkat :) Be Blessed
@dvishal23
@dvishal23 5 жыл бұрын
HI Venkat, Thank you for the tutorial. Your series on angular are great. I have a doubt regarding the trackBy, that if any value of one of the object changes, then it won't be updated on DOM, as we are not refreshing already loaded DOM. Could you help tackling such scenarios? Thank you Deep
@krish_techaadimulam2243
@krish_techaadimulam2243 7 жыл бұрын
Ur Angular 2 videos r very useful for me thank u sir
@kinglikeking
@kinglikeking 7 жыл бұрын
Hi Sir, Your tutorials are amazing and very helpful. I have a small query in this lesson. You have said that when we trackby in ngfor, then the previous columns will not be loaded again. In ngFor we have a last attribute, that specifies the last element. when we initially have 4 elements, the fourth element is treated as the last element, but when we add the fifth element, then the boolean value for the fourth element representing last should be made it to false and the fifth element should say it as true Please confirm whether it will happen?
@HemantSingh-pr7hd
@HemantSingh-pr7hd 4 жыл бұрын
Nicely explained. Thanks.
@shridharjjoshi
@shridharjjoshi 7 жыл бұрын
hi can we use index property of ngFor directly for interpolation instead of declaring varible
@kamdemkakengne
@kamdemkakengne 4 жыл бұрын
Thank you so much Venkat
@mamdouhemara7299
@mamdouhemara7299 7 жыл бұрын
hey Venkat, i have the following question but in ASP.NET Web API what if we want to make the response be like TotalCount, TotalPages and Entity Details so if we used HttpResponseMessage or IHttpActionResult the response will be Entity Details and other details like StatusCode Header etc so where we can add TotalCount and TotalPages?? also if we added the TotalCount and TotalPages in Class called XResponse along with the Entity Properties and make the Method return type XResponse in this case we can not control in the Status Code or Headers or anything that related to HttpResponseMessage?
@ymtan
@ymtan 7 жыл бұрын
Dear Venkat, I would like to ask for the trackByEmpCode method how come you didn't pass any value for both the index and employee parameters from trackBy:trackByEmpCode specified with the ngFor directive ??? trackByEmpCode(index:number, employee: any): string { return employee.code; }
@sagardeshmukh6120
@sagardeshmukh6120 7 жыл бұрын
It is because, the trackBy function takes the index and the current item as arguments by default. Also, it needs to return the unique identifier for the current item.
@selvarajmunuswamy3656
@selvarajmunuswamy3656 6 жыл бұрын
empty method also return the same value like not reloading the trackByEmpCode() { } Not sure about those two parameter, why we have to use that trackByEmpCode(index:number, employee:any):string { return employee.code; } please explain Thanks in advance
@monakolanji
@monakolanji 6 жыл бұрын
Hi Venkat, just for testing I have removed the trackByEmpCode function from class and trackBy:trackByEmpCode from html and then build and hit F5. It gives the same result even after I removed them. Can you please explain?
@secretsquirrel5566
@secretsquirrel5566 4 жыл бұрын
You Sir, are magnificent!
@anilvadlamudi2039
@anilvadlamudi2039 7 жыл бұрын
Hi Sir, Do you have your Azure videos, I would like to learn azure from your videos. Are you providing online course or if you have videos, I would like to buy your Azure videos.
@abhishektiwari9200
@abhishektiwari9200 5 жыл бұрын
Although the tr elements are not being recreated every time after trackBy, but the selector tag of the component is getting refreshed. So indirectly the table is also being recreated ?
@antonoreshko9551
@antonoreshko9551 7 жыл бұрын
Hello, your tutorials are amazing! But your old tutorials (Java Script, Entity Framework etc.) used Web Forms. Today it's not longer relevant. Can you do similar tutorials using newer technologies (MVC, Web Api)
@RachitJain4U
@RachitJain4U 5 жыл бұрын
Awesome :) Thanks :)
@TheINTERLECT1
@TheINTERLECT1 7 жыл бұрын
Why aren't you passing in the parameters when you are calling the trackByEmpCode function in the view template? Its expecting a number and an employee object. How does angular prevent the tearing down of the row if it does not have the arguments?
@shaun2099
@shaun2099 7 жыл бұрын
If you change Tom to Tomy in method getEmployees(), will angular identify the change to the item? Of course, angular will show Tomy when click the button, that means trackby not only identify the change by employee.code, please explain!!!
@EnzoQuartana
@EnzoQuartana 5 жыл бұрын
Always very good
@yele2652
@yele2652 7 жыл бұрын
thanks, sir. what happens if i update record - the employee code hasnt changed , therefor its record wont be uploaded again and data wont be updated on screen?
@dyldvine
@dyldvine 4 жыл бұрын
The trackByEmpCode function has two parameters. But when you specify this function in the ngFor directive, you do not pass any arguments to the parameters. I don't understand why that works. Where/how does it get the values passed into the parameters?
@sauravtanwer8435
@sauravtanwer8435 3 жыл бұрын
Sir your voice is same as the professor in Money Heist :) .
@techie2903
@techie2903 4 жыл бұрын
trackByEmpCode(index:number, employee:any) method has some parameter when declaring it. So why parameters are not passed when applying it in the ngFor directive.
@sachinchakravarthys1807
@sachinchakravarthys1807 6 жыл бұрын
Does trackBy is the keyword of ngfor ?
@HK-sw3vi
@HK-sw3vi 4 жыл бұрын
thank you good sir! was looking for that i = index part
@satyaprakashsingh8051
@satyaprakashsingh8051 7 жыл бұрын
HI, I am trying to follow the same step but can not able to get the map(). I have already imported the "import 'rxjs/add/operator/map'" but it does not work for me.
@pradeepsharma2163
@pradeepsharma2163 6 жыл бұрын
this is little confusing i could see trackByEmpCode is a method that need index,employee to be passed when called. but while calling trackByEmpCode using trackBy:trackByEmpCode' we are not passing either index or employee parameter. could you please explain it
@DecentProgrammer
@DecentProgrammer 4 жыл бұрын
thanks for the video sir
@semikolon4229
@semikolon4229 7 жыл бұрын
Very Helpful.
@nischalaks9838
@nischalaks9838 7 жыл бұрын
Hi sir, great vedios and your explaination is too good. Please make some vedios on "non coding courses" which will be helpful for people who doesn't want to code. And apt for trendy non coding courses( I mean to say other than programming languages) which will be helpful for ladies as well. I hope il get a reply from you sir. Thanks in advance
@amitsunnysingh
@amitsunnysingh 6 жыл бұрын
How trackBy will come to know that we want to track with employee code not with any other property If code and name has the same value string, then how its gonna track that
@TheShakthirvd
@TheShakthirvd 5 жыл бұрын
Because in trackByEmpCode you are returning empcode to trackBy.
@juturisharon3075
@juturisharon3075 7 жыл бұрын
pls make a video to call the apis in angular
@alankardasare4732
@alankardasare4732 6 жыл бұрын
why index as parameter and returning code, why not code as parameter and returning the code?
@maheshippili7918
@maheshippili7918 6 жыл бұрын
How to modify dom of an attribute when it clicked, that is in a ngFor loop
@subbaramireddygouru3314
@subbaramireddygouru3314 7 жыл бұрын
please upload all videos
@pitchaipillai519
@pitchaipillai519 7 жыл бұрын
could you please provide more videos with less interval between videos... waiting ..
@tanhoa1517
@tanhoa1517 3 жыл бұрын
the video image is too poor, you need to fix it more
Angular pipes
8:22
kudvenkat
Рет қаралды 124 М.
Angular component output properties
16:56
kudvenkat
Рет қаралды 154 М.
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Directives in Angular Applications
25:13
Programming with Mosh
Рет қаралды 182 М.
Angular ngFor directive
9:10
kudvenkat
Рет қаралды 147 М.
Why dependency injection
11:53
kudvenkat
Рет қаралды 156 М.
Angular 2 http service tutorial
22:15
kudvenkat
Рет қаралды 212 М.
Angular in Tamil - 10 - ngFor | Structural Directives
22:30
Top 50 Angular Interview Questions
2:12:59
Interview Happy
Рет қаралды 307 М.
Angular for Beginners - Let's build a Tic-Tac-Toe PWA
20:46
Fireship
Рет қаралды 495 М.
ngFor trackby Angular | trackby in angular | Angular Tutorial
6:29