@michael corbridge I also think streams is the way to go, i'm thinking of 
setting up the component and above an injectable, then set up an Observable 
in the injectable and subscribe to it in the component, who is it?

For the time being i will look to the link you advised me.

El domingo, 17 de enero de 2016, 9:50:04 (UTC-5), michael corbridge 
escribió:
>
> Hey Carlos,
>
> Streams are definitely the way to go in this case. Torgeir Helgevold (<- 
> props to Torgeir!) has an excellent example of this at:
>
> http://www.syntaxsuccess.com/viewarticle/pub-sub-in-angular-2.0
>
> I know for a fact that this will do exactly what you are looking for.
>
>  - michael
>
> On Sunday, January 17, 2016 at 8:06:29 AM UTC-5, Carlos Esteban Lopez 
> Jaramillo wrote:
>>
>> Hi, i'm making a busy indicator component, the way i did go with it is to 
>> have the component right under the app html component side to side with the 
>> <router-outlet></router-outlet> component.
>>
>> I need to be able to set a variable from anywhere in the code, so i was 
>> thinking about observables to send values to it, can't use the angular 
>> binding with EventEmitter since the busy component is outside of the 
>> components hierarchy.
>>
>> Any idea how to set it up? i'm a noob about Rxjs, how do i create an 
>> observable of the variable and how would i call it from another component 
>> to set the value?
>>
>

-- 
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.

Reply via email to