ngOnInit vs Constructor: Understanding the Differences for Interviews | Angular Interview Concepts

  Рет қаралды 7,388

Web Tech Talk

Web Tech Talk

Күн бұрын

Пікірлер: 23
@OpenMarketDiscussions
@OpenMarketDiscussions 2 жыл бұрын
Super video, i was just looking for it 👏
@WebTechTalk
@WebTechTalk 2 жыл бұрын
Thank you
@jayshankarbehera5934
@jayshankarbehera5934 Жыл бұрын
thanks bro i was looking for the last point only which you said for @input property val we can not get in constructor, thanks
@WebTechTalk
@WebTechTalk Жыл бұрын
Glad it helped you ☺️
@abhilashrao1392
@abhilashrao1392 2 жыл бұрын
very informative stuff...Thanq you..
@WebTechTalk
@WebTechTalk 2 жыл бұрын
Thank you very much.
@talib7508
@talib7508 2 жыл бұрын
Can you plz explain how to create dynamic matrix of inputs From a given no Like horizontal 3 and vertical 4 Also take value from each input
@WebTechTalk
@WebTechTalk 2 жыл бұрын
Sorry. I am not familiar with this. Could you please give me an example or a reference?
@valluvan2512
@valluvan2512 Жыл бұрын
If the value 75 is taking only in oninit function.then how that 25 is working for that inside constructor.That 25 also will work fo oninit ryt? Inside constructor it should be 0 ryt?
@WebTechTalk
@WebTechTalk Жыл бұрын
When we pass 25, inside constructor the value is going to be zero and so it gives us lesser than 50, but as 25 is lesser than 50, the end result is correct. but when we pass 75, as in constructor the value is going to be zero, it is displaying it is lesser than 50, but actually we are passing 75 and expecting it to be greater than 50. Hope this clarifies.
@valluvan2512
@valluvan2512 Жыл бұрын
@@WebTechTalk ho okayy thank a lot
@william.fitnesss1164
@william.fitnesss1164 Жыл бұрын
Thank you!!!
@WebTechTalk
@WebTechTalk Жыл бұрын
Thank you 🙏
@arindamchakraborty5880
@arindamchakraborty5880 Жыл бұрын
Can you please share the code files? It will be easier to take notes.
@WebTechTalk
@WebTechTalk Жыл бұрын
All codes are available in this repo. github.com/freelancer-surender/Angular---Interview-Concepts
@thecoeus2233
@thecoeus2233 2 жыл бұрын
Superb video
@WebTechTalk
@WebTechTalk 2 жыл бұрын
Thank you so much 😀
@vandanaingole4057
@vandanaingole4057 Жыл бұрын
why u explain very fastly. bcz of that i m not getting
@WebTechTalk
@WebTechTalk Жыл бұрын
Yes I am working on that. I think in recent videos you can see some difference.
@vikaskumarthakur6469
@vikaskumarthakur6469 5 ай бұрын
One advice for you, while teaching please don't go so fast as it's maker listerner repeat the video what was said
@WebTechTalk
@WebTechTalk 5 ай бұрын
Sure. My initial days videos are fast. Requesting you to check some of my recent videos.
@aristotelis700
@aristotelis700 2 жыл бұрын
While this video is informative and I appreciate the knowledge, you don't really explain the reason that the logic on the constructor is not working. Could you elaborate please? Thanks for the video 🤗🙏
@WebTechTalk
@WebTechTalk 2 жыл бұрын
The logic on the constructor is not working because we are getting the value of the @Input property only in the oninit, not in the constructor. So it is zero and displaying less than 50 always.
constructor vs ngoninit: difference between constructor vs ngoninit
12:48
Sahosoft Solutions
Рет қаралды 25 М.
Ionic Angular - constructor vs ngOnInit
6:41
Coding Technyks
Рет қаралды 4,1 М.
Angular 6 Basics 14 - Using ngOnInit Lifecycle hook
9:12
Java Brains
Рет қаралды 99 М.