Hi, I need a global service with variables that dont change across the application.
You can see my project as an example: https://github.com/prsolucoes/gohc I have on header the count/list of running jobs. I need that every second this new informations change on this global service and this information will be used to show the list of running jobs too. Thanks. Em 8 de jul de 2016 4:24 AM, "Sander Elias" <[email protected]> escreveu: > Hi Paulo. > > May I ask for your use-case? do you wan't/need some kind of global? > I'm not aware of a way to do it through the injector. However, it is > possible to create a real singleton service(that you can use in and outside > angular), that you put into the global space. > > regards > Sander > > -- > You received this message because you are subscribed to a topic in the > Google Groups "AngularJS" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/angular/shzB6YcCHZ8/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
