The super clear , super powerful , best ever explanation ever existed. Nobody explained like you, no bullshit, TO THE POINT explaination. you're the HERO for angularjs noobs.
@uditkaushik88365 жыл бұрын
one of the best video out there which tells the difference between service, factory and providers in AngularJS and tells the use case of each type of providers. Thanks.
@amitsaini77498 жыл бұрын
Wow. Now this is what you call an explanation. There cant be any better explanation than this. Thankyou so much
@itsimpl62577 жыл бұрын
Finally I cleared my confusion between provider, service and factory. You are really fast in typing. Thanks.
@rudirnhj13118 жыл бұрын
By far the best video explaining the difference between the different providers - absolute loved it and actually got it the first time around. Props for the link at the end to your website with the cheat sheet!
@trejo_o8 жыл бұрын
Luis, this video definitely helped out a lot. Thank you for taking the time for making the video. You should consider making more videos for your channels. I'm sure people would love your explanations.
@stanislautsishkou56328 жыл бұрын
the best ever explanation I've ever heard!
@vermaurvi166 жыл бұрын
This is really great video, I have always been confused by these three and never make out the difference. You made it quite easy and sensible. Thank you..!!
@Sumanaoka6 жыл бұрын
I felt bad on this guy for commenting and uncommenting the codes manually, But a great video though
@MrRajeshragu7 жыл бұрын
Thanks much Luis. Very well explained. You help me covering the last mile, in knowing the differences & implementation process of all major custom services in angularjs.
@rohitprajapati74948 жыл бұрын
Best video of angular providers and related stuff.
@mohitsharma287 жыл бұрын
good teaching skills you have. excellent demonstration and clarity.
@neerajsoni63507 жыл бұрын
Great demonstration and beautifully explained.. worth every line and minute :) Great !
@Nikhilkumar-qd3oq7 жыл бұрын
the difference has been explained very clearly
@umapathivc24767 жыл бұрын
Excellent ... If possible upload get post methods using services and factory methods
@sravang68758 жыл бұрын
This explanation is very good. I was expecting more difference between factory vs service.
@manojgudi2238 жыл бұрын
Excellent demonstration. Thanks for taking time and sharing it.
@hujingtao15 жыл бұрын
my project's legacy code is old angular, i have to learn old angular again, thanks for your video, it's very helpful!!!
@srikota097 жыл бұрын
Loved the video it's an easy and clear breakdown I was breaking my head last night you cleared in 15mins thank you :)
@muralichowdary64528 жыл бұрын
Man you are some teacher.!!!! Excellent. Loved your explanation. Thanks a lot.
@muralichowdary64528 жыл бұрын
Very clean code, loved it .
@oliversmit12558 жыл бұрын
Brilliant video - thanks for the upload. Your code is also clean and a pleasure to look at!
@LuisPerezPhd8 жыл бұрын
Oh +Oliver Smit you know just the things a programmer wants to hear :) Thanks.
@AbdulRehman-zt4gt6 жыл бұрын
Best explaination on angularJS
@bhushanyou18 жыл бұрын
Hi ... This is awesome tutorial ... just wondering what is that IDE you are using .. can you please share the name of it
@LuisPerezPhd8 жыл бұрын
In this video I was using Adobe Brackets, which is pretty nice. If you are looking at different IDE's I also suggest you take a look at Visual Studio Code. I think both of them are cross platform built on what I think is called the "Electron" shell.
@charleswagon42326 жыл бұрын
Great video. You have a real gift for presentation.
@geekmoh15642 жыл бұрын
very well explained sir, thank you so much!
@luigizottoli8 жыл бұрын
what about passing variables and changing the value after an event??
@LuisPerezPhd8 жыл бұрын
+luigi zottoli I will try to answer this best I can, it would help if you could provide a little more detail, what exactly are you trying to accomplish?. The value() provider let's you change the value over time. But you get provider value's once when it get's injected. For example when your controller first gets created the value will be injected it will not change afterwards. Now if you make the value and object then the properties of that object will change. For example module.value("myValues", { value: 10 }). Since what's actually being injected is a reference to the object, if you change any property in that object, that can be seen anywhere.
@luigizottoli8 жыл бұрын
+Luis Perez first of all thanks a lot for your help , basically I am toggling a variables between true and false and the value of the variable show and hide a view trough ng-if . Now, I want to toggle this value when something in the new view is clicked . I am not really sure if this is the right way , but what I want to do is set the value in the service to shared between the controllers and change it trough the controllers. I hope I explained myself enough clearly !!
@LuisPerezPhd8 жыл бұрын
luigi zottoli Hey I think I understand. Here are 5 ways you can share values. The best one is using the value provider, I show you how. What is the relationship between the controllers? Is one nested within the other? If so you can access the parent scope by using $scope.$parent.var = something. See an example here: jsfiddle.net/luisperezphd/0gc56ejq/ Something else you could do is to store your value in the $rootScope instead of the $scope. In this case the value is accessible from any controller whether it's nested or not. Here is an example of that: jsfiddle.net/luisperezphd/twubgqu5/ You can use value() and if fact of the 3 ways I mentioned so far that's the best way to go becuase you can be more clear in your code as to which controllers are accessing your data. The key though is to use an object not a primitive. The reason is that primitive values get "copied" while objects are passed by reference. See an example of that here: jsfiddle.net/luisperezphd/tyru8n7t/ Another way you can "share" between controllers is to use the angular "broadcasts". I can go into that if you want, it's not my favorite approach and requires a bit more work. Finally there's still yet another approach if you are using directives that are designed to be nestable, but again that sounds like it's out of scope. (see what I did there - out of *scope* - couldn't help myself.) Hope this helps.
@luigizottoli8 жыл бұрын
thank you very much that was really helpfull , I really appreciate your help
@LuisPerezPhd8 жыл бұрын
My pleasure, glad I could be of help. You can always reach me via my blog. I also have a 5 day mini course there, I get any replies to those emails.
@alizaidi59434 жыл бұрын
Great video!
@tanveerengg6 жыл бұрын
one word to describe: ultimate !!
@developer87808 жыл бұрын
You know you can comment out selected lines by selecting several lines and pressing ctrl+/
@LuisPerezPhd8 жыл бұрын
+Developer I did not know that, thanks for the tip.
@ProjectsInMetal6 жыл бұрын
I was wondering if your text editor somehow didn't allow you to do a multi-line comment/uncomment. At one point you highlighted a whole block of code and I thought, this is it, this is when he's going to bulk comment his code! But nope. LOL. This video was perfect for me. It's exactly what I was looking for to help me understand factory vs service. But I kept cringing when you managed your comments line by line. You're obviously a very skilled developer so it makes me feel better that even skilled devs can miss a shortcut like this. :) Seriously, I'm not at all trying to make you feel bad. I really appreciate your excellent video. I've subscribed and liked and if I could buy you a beer I would. Cheers!!!
@НиколайМихно-ы6ш8 жыл бұрын
AWESOME EXPLANATION!
@eamoolman8 жыл бұрын
Great video, thanks a lot!
@prempal35267 жыл бұрын
Very nice video sir
@ayyappaaryan31218 жыл бұрын
really a grate work out Thanks..!!!
@arun105k6 жыл бұрын
WOW!!! That was amazing...
@mikitadusmikeev4539 жыл бұрын
Thanks to you for lesson. But I disagry with you about differences between services and factories. As service as factory return everything it want. I try return int, string, obj, even function - all is ok. Difference i'v got is next: Service return function, that will used in anoter place, so all metods and properties, that declarated by 'this' will created, all local variables (will delited as trash), and actions like 'console.log' - willn't. Factory return new exemplar, maded by it's own, so all things wasn't created in service will be created in factory. Sorry for my english) Well my way show me this differences am I wright or not, tell me please?
@LuisPerezPhd9 жыл бұрын
Hey +Никита Дюсьмикеев, can you elaborate on what you mean. Maybe create an example on JS Fiddle. The way service works in Angular is that AngularJS will call "new" on whatever function you provide. If you were to return an int "new int" wouldn't work. So a service can only be an object. Now if you were returning an object with a method, that method can return any type you want. You can use the JSFiddle from my post as a basis to show what you mean - you can find that here: jsfiddle.net/luisperezphd/zeq2cxo9/. When I tried it, it couldn't get it to work properly returning an int. Thanks.
@mikitadusmikeev4539 жыл бұрын
Hey +Luis Perez, sorry for long silence. Looks like I'v got what you explain) Using your example "myProvider" service will always object (jsfiddle.net/8mo293Lq/), and "myProvider" factory can be any type I need(jsfiddle.net/7s3wqgjb/). I thought about something wrong, sorry) Grand thanks, finaly I found my way to understand))