Angular Singleton Service

Поделиться
HTML-код
  • Опубликовано: 19 сен 2024
  • Text version of the video
    csharp-video-tu...
    Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our RUclips channel. Hope you can help.
    / @aarvikitchen5572
    Slides
    csharp-video-tu...
    Angular 2 Tutorial playlist
    • Angular 2 tutorial for...
    Angular 2 Text articles and slides
    csharp-video-tu...
    All Dot Net and SQL Server Tutorials in English
    www.youtube.co...
    All Dot Net and SQL Server Tutorials in Arabic
    / kudvenkatarabic
    Tags
    angular create singleton
    angular singleton class
    angular singleton example
    angular 2 dependency injection singleton
    angular inject singleton
    angular singleton object
    typescript angular singleton
    In our previous video we discussed why should we use dependency injection and the benefits it provides. One of the benefits of dependency injection is that it allows us to share data and functionality easily as the angular injector provides a Singleton i.e a single instance of the service.
    So in this videos let us see how we can use Angular services and dependency injection to create a Singleton i.e a single instance of the service which enables us to share data and functionality across multiple components in our application. To better understand this video, please watch our previous video - Why dependency injection.

Комментарии • 44

  • @sanmani7781
    @sanmani7781 6 лет назад +4

    You are a great soul brother. Soulful Thanks brother.

  • @ShruthiLakshminarayana
    @ShruthiLakshminarayana 2 года назад

    Thank you very much, I cannot thank enough for the details and clarity on the topic. I see a God in you. 🙏🏻🙏🏻

  • @shyamswaroop384
    @shyamswaroop384 7 лет назад +1

    Your videos have been very useful to me....I am able to complete my website...thanks alot

  • @jeetudagar
    @jeetudagar 6 лет назад +5

    Very good explanation.

  • @abhinavshrivastava4637
    @abhinavshrivastava4637 6 лет назад

    u saved my life..thank u so much..i was struggling becoz my subscribe function was not getting triggered ..now i got the point since it was a different copy of that service that's y the problem was there..thankssss a ton mate

  • @adidasnasok
    @adidasnasok 5 лет назад +3

    no more providers[ ] in 2019 ,thank you providedIn !

  • @naodagere8210
    @naodagere8210 4 года назад

    Your way of demonstration and the scenario you take for demonstration also are always are great!

  • @kerahari
    @kerahari 6 лет назад

    Hello Sir,
    Thank you for all your tutorials. These are very helpful for gaining in depth knowledge of each concepts.I appreciate the effort you put behind for making all these video series.
    Thank you sir

  • @parashuramakulakarni5073
    @parashuramakulakarni5073 6 лет назад +3

    Sir, your best 😊

  • @marootarram
    @marootarram 4 года назад +1

    Thank you so much sir! I really do appreciate your efforts, god bless you.

  • @abhishekrapelli9511
    @abhishekrapelli9511 5 лет назад

    Thanks a lot for sharing this video. You have explained the concepts in a simple & precise format.

  • @allexiusw
    @allexiusw 4 года назад +1

    Thanks a lot, really helpful tutorial...

  • @SpyrosMetallinos
    @SpyrosMetallinos 3 года назад

    Excellent explanation. Thank you for saving me hours of googling this

  • @ak6513
    @ak6513 4 года назад

    you are amazing. crystal clear explanation

  • @raqibul1000
    @raqibul1000 7 лет назад +3

    Thanks a billions.

  • @mohinderlamba
    @mohinderlamba 6 лет назад

    We can also get the same behavior by having a static property in the userpreferences class right? as a matter of fact that way we can share as well as keep some properties unshared by making them non static. Just trying to understand.

  • @richardprakash4630
    @richardprakash4630 4 года назад +1

    What if we have module1 and module2 and service is in sharedmodule and if I register in "Providers" section in module1 and module2, will this service still be singleton??

  • @zoecarlibur
    @zoecarlibur 6 лет назад +1

    Amazing as always

  • @kamdemkakengne
    @kamdemkakengne 4 года назад

    @kudvenkat
    Thank you Venkat! Is it possible to use DI with interface in Angular?

  • @kaushikbhadnai290
    @kaushikbhadnai290 7 лет назад +1

    Hi Sir, can you please do a complete CRUD operation video on Angular2 .. please please please!!!!!....................Thanks a lot!!!!!!

  • @edwinmerino6490
    @edwinmerino6490 3 года назад

    As alway a great explanation of the topic

  • @tabish3024
    @tabish3024 5 лет назад

    awesome Explanation !! Wow Amazing Brother..

  • @amitpamecha7795
    @amitpamecha7795 6 лет назад

    Nice explanation. I resolved my issue with this video. Thanks :)

  • @shadow_3213
    @shadow_3213 5 лет назад

    Thank you very much for this tutorial !!!
    Helps me a lot :-)))

  • @kartheekreddyjonnalagadda1605
    @kartheekreddyjonnalagadda1605 5 лет назад

    Hello sir, excellent. I have one question here. When we new of the application it's getting reset. How to retain service data between tabs.

  • @viniciusgalvao6270
    @viniciusgalvao6270 4 года назад +2

    Thanks for the detailed video, but the "ellow" color was killing me :P.

  • @harikagunti8001
    @harikagunti8001 4 года назад

    Hi very good tutorial, I was using singleton concept, am using the same service in 3 different places, so service instance is creating one more time, etc. am not understanding why. so please help me

  • @chetanpl
    @chetanpl 7 лет назад

    Fully fruit full video.
    Love you sir

  • @jessibhadra8192
    @jessibhadra8192 6 лет назад

    Thank you very much! Helped me solve a bug in my Angular code.

  • @ibrahimmohmoud5570
    @ibrahimmohmoud5570 6 лет назад

    You are awesome man
    I Appreciate

  • @allexiusw
    @allexiusw 4 года назад

    The best tutorial for this topic, thanks a lot. I did a lot of research and I couldn't fired it out...

  • @jackjackson3507
    @jackjackson3507 7 лет назад

    Nice video can you please do a complete CRUD operation video with this.

  • @gauravoberoi962
    @gauravoberoi962 6 лет назад

    How to retain the changed color we did in employee, when we go back from home to employee?

  • @RachitJain4U
    @RachitJain4U 5 лет назад

    Awesome :) Thanks :)

  • @rakibul1765
    @rakibul1765 3 года назад

    thanks you

  • @kashiffaraz5209
    @kashiffaraz5209 6 лет назад

    why not use static member ?

  • @rihamkharoub9989
    @rihamkharoub9989 4 года назад

    😍

  • @dileepp5140
    @dileepp5140 7 лет назад

    Do more video's Angular 2

  • @fartinthesheets
    @fartinthesheets 6 лет назад

    ELLOW

  • @deepukumarprajapati4594
    @deepukumarprajapati4594 7 лет назад

    could u make this video series in Hindi.

    • @iregula9816
      @iregula9816 7 лет назад

      His English is quite good, by the way he is Telugu guy

  • @kosovacvr
    @kosovacvr 6 лет назад +5

    it's YELLOW not ELLOW

    • @UYK-fq4dq
      @UYK-fq4dq 6 лет назад +8

      Mladen Tasic like if we care a lot!

  • @jarekwojtaszczyk7050
    @jarekwojtaszczyk7050 4 года назад

    po chuj to pokazujesz jak nie dziala ?