Creating a Service in Angular | Services & Dependency Injection | Angular 12+

  Рет қаралды 41,564

procademy

procademy

Күн бұрын

Пікірлер: 25
@YouCantGetBrokeByGiving
@YouCantGetBrokeByGiving 2 жыл бұрын
This is something I can really apply in real work, other youtubers give such bad examples/implementaions that do not help. it helps only to understand something that you will not use.
@mozammilahmad8431
@mozammilahmad8431 2 жыл бұрын
Wohhhoooo...explaining a way like a small kid will understand
@SaadAliAlkhairi
@SaadAliAlkhairi Жыл бұрын
Thank you sir for putting the effort in this course. I would say this is the best Angular course I found on KZbin. The examples you give are more realistic and related to world which helps to understand everything with great ease. I'll recommend this course to everyone who want to learn Angular. Lot's of love for you Sir.
@raghuguru8661
@raghuguru8661 2 жыл бұрын
This is good information.. thanks for making video .. waiting on dependency injection..
@YouCantGetBrokeByGiving
@YouCantGetBrokeByGiving 2 жыл бұрын
I like your style very much, thank you for your hard work!
@michaeltkachenko7313
@michaeltkachenko7313 Жыл бұрын
By the way, what has not been mentioned in the video, or simply has not been accented, is that by using a service we do not just avoid duplicating code, but making our app more flexible and scalable. Imagine if you want to change some logic of inserting a user to a database, if you have separate duplicate realisations of this method in different components, than, you will have to change the logic in EACH function separately, it takes more time and has a higher chance of making a mistake. Using a service like this, on the other hand, you will have only one method, and changes in one place of your app will make the whole other behaviour of all the components, without changing each of them one by one. Therefore, such an attitude provides a way greater maintenance options with lesser resources.
@ahmedshehata8964
@ahmedshehata8964 Жыл бұрын
is it okay to import this service in appModule component to avoid importing it in all componenets ?
@sumaganjal
@sumaganjal 2 жыл бұрын
Explanation is great, easy to understand. Thank you
@matthewcullinane537
@matthewcullinane537 2 жыл бұрын
Great video. Very simple and informative. Thank you!
@hashamniazi3402
@hashamniazi3402 Жыл бұрын
it was really helpful Thank You ♥♥
@sivaprasad10410
@sivaprasad10410 2 жыл бұрын
@procademy can we intialise the service class in OnInit() life cycle hook
@JupudiManikantaSwamy
@JupudiManikantaSwamy 10 ай бұрын
Thanks Sir
@cliniclown8786
@cliniclown8786 Жыл бұрын
hundreds of thousands of lines in one method? damn I've yet to experience that
@HealthChampion
@HealthChampion 10 ай бұрын
To be fair to him, he is saying 'Hundreds or thousands of lines of code', not 'of'. Still, thousands of lines of code in one method, I am yet to experience too :)
@cliniclown8786
@cliniclown8786 10 ай бұрын
oh yea, hundreds or thousands is what I meant to say. Have never seen that either, but I'm a beginner software developer@@HealthChampion
@esthermatangi
@esthermatangi Жыл бұрын
sir can you create javascript playlist
@VamshithGB
@VamshithGB 6 ай бұрын
sir pls give me CSS code of this project
@DineshKumar-by1bv
@DineshKumar-by1bv Жыл бұрын
Hello Can you pls share a video for contact form sending mail
@hcr2bangladesh
@hcr2bangladesh Жыл бұрын
looks like you just learned ng, that's not how services are used now. and where is DI?
@lxdzii
@lxdzii Жыл бұрын
i'm also shocked at how he implemented the service!
@HealthChampion
@HealthChampion 10 ай бұрын
He is simply showing the old way and covers the DI in next video and he is mentioning that at the end of this video.
@andreiberes9442
@andreiberes9442 9 ай бұрын
Why he did not injected the service in a constructor ? Am i missing something ? Im also new in ng, just asking.
@CHANDRASHEKHAR-hk8sq
@CHANDRASHEKHAR-hk8sq 2 жыл бұрын
sir where is source code
@procademy
@procademy 2 жыл бұрын
github.com/manojjha86/complete-angular-13-course
"Идеальное" преступление
0:39
Кик Брейнс
Рет қаралды 1,4 МЛН
Andro, ELMAN, TONI, MONA - Зари (Official Music Video)
2:50
RAAVA MUSIC
Рет қаралды 2 МЛН
Sigma girl VS Sigma Error girl 2  #shorts #sigma
0:27
Jin and Hattie
Рет қаралды 124 МЛН
Hilarious FAKE TONGUE Prank by WEDNESDAY😏🖤
0:39
La La Life Shorts
Рет қаралды 44 МЛН
Chaintest Reporting with Cucumber BDD Framework | No More ExtentReport
9:12
This Folder Structure Makes Me 100% More Productive
24:36
Web Dev Simplified
Рет қаралды 117 М.
What is Observable | Observables | Angular 12+
14:16
procademy
Рет қаралды 162 М.
Angular Life Cycle Hooks | Lifecycle Hooks | Angular 12+
18:47
Subjects in RxJS | Observables | Angular 12+
16:14
procademy
Рет қаралды 58 М.
Services in Angular - Learning Angular (Part 6)
14:05
Angular
Рет қаралды 59 М.
Creating and Using Reactive Forms | Angular Forms | Angular 13+
12:21
"Идеальное" преступление
0:39
Кик Брейнс
Рет қаралды 1,4 МЛН