For me that's the most best explanation, i founded in Internet about mvvm. Everything explained with SIMPLE words and examples. Very good Job. Thank you
Great note at 6:30. The one where you mentioned that the view model isn’t responsible for calling a data base or a web api. Some people put everything in the view model. Also a nice tip about the model presenter pattern.
@@Raj01061985 create a seperate layer of classes for api call or database handling which direclty interacts with model.. so those changes can be tracked inside viewmodel which finally are shown on view.
Thanks for the straightforward explanation. It's hard to find videos that don't assume a certain level of background knowledge-in my case, I have none when it comes to developing GUIs. Thank you for the great video.
This is one of the clearest explanation I found about this. Thank you! Can you please explain the MVP pattern as well? Or if you already have a link to it? cheers!
Thanks for putting this together. I come from a web development background (mostly Ruby), and I'm just now getting into Swift. I love these types of videos. Would you agree when I say that a ViewModel is similar to a controller? Particularly with SwiftUI. I feel that Views should focus on presentation and that the responsibility of communicating with the database/API should be done in the controller and/or view model.
I wouldn't say that ViewModel is similar to VC. It does feel sometimes but the main purpose of the VM is to provide data and also work with the state of the view.
if the view is used to update the database that was the source for the model, does that flow from the view, to the view model, to the model, and then to the database? I ask because you said "the only job of a view model is to provide the data to the view and also keep track of the different state changes of the view". Sorry, i'm a novice. Seeking clarification.
When i start with AvaloniaUI i just was not able to get some thing just because i had no idea how ts all disigned, but after i watched this video all things become clear. (I am not native speaker sorry if there is some errors)
For me that's the most best explanation, i founded in Internet about mvvm. Everything explained with SIMPLE words and examples. Very good Job. Thank you
yannick tafrey I also felt the same
I second you on this bro 👊
Best explanation the MVVM concept on RUclips, look no further people.
Great note at 6:30. The one where you mentioned that the view model isn’t responsible for calling a data base or a web api. Some people put everything in the view model. Also a nice tip about the model presenter pattern.
What would be the place for calling a data base or a web api. your input
@@Raj01061985 In a seperate layer and injected into viewmodel using DI
@@Raj01061985 create a seperate layer of classes for api call or database handling which direclty interacts with model.. so those changes can be tracked inside viewmodel which finally are shown on view.
Awesome video, you explained MVVM even kids can understand it. Thank you, lifesaver!
Web API
╲
Model ↔ ViewModel ↔ View
╱
Database
Glad you liked it!
Thanks for the straightforward explanation. It's hard to find videos that don't assume a certain level of background knowledge-in my case, I have none when it comes to developing GUIs. Thank you for the great video.
Thanks for this video, it was really concise and understandable.
You're very good at explaining concepts clearly! A true trait most lack! Thank you
Thank you!
The most concise and understandable explanation, complete with clear and thorough examples. Thank you so much.
This video is top notch. best one on the web I guarantee it! Nice job!
Thanks 👍, first time in years I got such beautiful explaination
Thanks Azam. You did a really good job of explaining the MVVM model clearly.
Thanks!
Very clearly explained.Please make a video on MVC and MVP.
this is a great practical explanation.
This is one of the clearest explanation I found about this. Thank you!
Can you please explain the MVP pattern as well? Or if you already have a link to it? cheers!
Great Explanation sir , Thank you😊
I don’t know why I disliked it🤷♂️, getting back and pressing like 👍
Thank you. Very good for a beginner like me.
Fantastic explanation!
AWESOME EXPERIENCE
100% for explanation. Liked. Subscribed. Turned on notifications. Heading to Udemy!
The best explanation !!!!!!!!!! thanks x 100
Thanks for putting this together. I come from a web development background (mostly Ruby), and I'm just now getting into Swift. I love these types of videos. Would you agree when I say that a ViewModel is similar to a controller? Particularly with SwiftUI. I feel that Views should focus on presentation and that the responsibility of communicating with the database/API should be done in the controller and/or view model.
I wouldn't say that ViewModel is similar to VC. It does feel sometimes but the main purpose of the VM is to provide data and also work with the state of the view.
@@azamsharp That makes a lot of sense. It sounds like controllers would then be separate from the view model.
Great explanation! Thank you!
if the view is used to update the database that was the source for the model, does that flow from the view, to the view model, to the model, and then to the database? I ask because you said "the only job of a view model is to provide the data to the view and also keep track of the different state changes of the view". Sorry, i'm a novice. Seeking clarification.
ty good explaination
Great work !!!
At 6:27, shouldn't the movie stored property be private? I think it would encapsulate it better.
Absolutely!
@@azamsharp Great videos! See you on udemy :)
Nicely explained!!
hi , where can i put api call request and data parsing ? will it be inside view controller or in model ?
Vipul Dungranee inside the http client or web service client
Where do we call that httpclient from?
@@1402ram from VM
Thank you!
where to call the api...if it’s a separate class should viewmodel consume it
Api calls are done by model in background
When i start with AvaloniaUI i just was not able to get some thing just because i had no idea how ts all disigned, but after i watched this video all things become clear.
(I am not native speaker sorry if there is some errors)