[AngularJS] Re: chaining observables and subscribing to them

2017-04-20 Thread Reza Razavipour
And what if in the future I will need to merge with another observable that returns lets say string, now I will have strings coming back from 2 different observables. How to tell them apart? On Thursday, April 20, 2017 at 1:15:48 PM UTC-7, Reza Razavipour wrote: > > so now I have two

[AngularJS] Re: chaining observables and subscribing to them

2017-04-20 Thread Reza Razavipour
so now I have two observables and need to run at the same time, in parallel, so I merge the last 2 observables. getConfigurationSettings() .do(config => { console.log('we got the configuration settings.'); this.configSettings = config; }) .switchMap(config =>

[AngularJS] Re: chaining observables and subscribing to them

2017-04-20 Thread Sander Elias
Hi Reza, Well, as usual, it depends on what you need to do. But if you have indeed 2 different observables, that result in 2 different things, that need different handling, then you have a reason to use multiple subscribers. But be careful with side-effects. Observables work great if you use

[AngularJS] Component not rendered when provider for service not defined and no error reported

2017-04-20 Thread Ondrej Smola
Hi, i am building simple demo service in Angular 4.0.2 (new to Angular so asking here first before reporting as an issue). I have service (ServiceA) that should be injected into component (that is part of template in parent component) - but i forgot to define provider for it in module

[AngularJS] Adding Angular Material to Angular 1.3.0 - getting error "Unknown provider: $$jqLiteProvider..."

2017-04-20 Thread Gavin
I am trying to add the latest version of Angular Material (v1.1.3 currently) to an Angular 1.3.0 application. Due to some constraints we cannot unfortunately upgrade to the latest 1.x versions of Angular. I have done the following so far to try to get this working in our existing application

[AngularJS] Re: How to subscribe to route parameters changes (both path and query)

2017-04-20 Thread Sergei Kasoverskij
Thanks again. I suppose it will "load data" twice if both parameters change? On Thursday, April 20, 2017 at 1:48:12 PM UTC+2, Sander Elias wrote: > > Hi Sergei, > > Yes it will, but use the merge operator instead of the zip one. > > Regards > Sander > -- You received this message because you

[AngularJS] Re: How to subscribe to route parameters changes (both path and query)

2017-04-20 Thread Sander Elias
Hi Sergei, Yes it will, but use the merge operator instead of the zip one. Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[AngularJS] Re: Component not rendered when provider for service not defined and no error reported

2017-04-20 Thread Sander Elias
Hi Ondrej, I'm not sure I follow along, can you give a (pseuso) code sample? From the sound of it, it sounds like something fishy is going on, but I'm not convinced. Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS

Re: [AngularJS] Re: angular application getting an error from a tomcat application

2017-04-20 Thread Reza Razavipour
it turns out that the issue is the server needing to check the JSESSIONID found in the cookie. So what I need to end up doing is to send a "fabricated" cookie along with my requests. No I am not trying to hack anything, but merely allow myself to test the code using an external mock client web

[AngularJS] Re: How to subscribe to route parameters changes (both path and query)

2017-04-20 Thread Sander Elias
This might help there -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails

[AngularJS] Re: How to subscribe to route parameters changes (both path and query)

2017-04-20 Thread Sander Elias
That's up to you. Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this

[AngularJS] Angular JS 1.5.9 generate the textbox dynamically after providing some input

2017-04-20 Thread Swapnil Kamble
Hi All, I've specific requirement as in first text box i just entered the number like 10 or 15 after on blur of that textbox check the input value and generate the textbox below of that textbox. Use Angular JS 1.5.9 -- You received this message because you are subscribed to the Google Groups

[AngularJS] Re: How to subscribe to route parameters changes (both path and query)

2017-04-20 Thread Sergei Kasoverskij
Hi, Thanks for you reply. But I think your approach will work only if both parameters are changed, but won't work if I'll change only query or only path parameters. On Thursday, April 20, 2017 at 4:43:49 AM UTC+2, Sander Elias wrote: > > Hi Sergei, > > Merge those before subscribing to them.