Re: [AngularJS] Re: Angular4 with universal cli

2017-07-24 Thread Sander Elias
Hi Vidhi,

Here is a CLI wiki 
on 
how to start a universal app now.

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 group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Angular 4 with electron error

2017-07-24 Thread Sander Elias
Hi Chuck,

How did you pull in the native libraries into your project? How did you 
build your application? It sound like the native libraries are not loaded 
at all.

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 group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Set Global variable

2017-07-24 Thread Sander Elias
Hi Bjarni,

No, sorry, I had seen this request so many times for Angular version 2 and 
up, that I assumed you where there.
In AngularJS you can just use the variable. However, keep in mind that when 
you are using a primitive (in this case a string) values are copied over, 
not passed by reference. Changing the value of a primitive will not 
magically update old copies. 

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 group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: Set Global variable

2017-07-24 Thread Bjarni
Thanks Sander, but I don't quite understand.   Are you suggesting I should 
be using typescript in my project and by doing so I could update this 
global variable from my angular controller ?

Regards, Bjarni

On Monday, July 24, 2017 at 3:31:58 AM UTC, Sander Elias wrote:
>
> Hi Bjarni,
>
> This is more a typescript issue as it is an angular one. 
> try this in the code you want to use your global:
>
> declare var GlobalVariable:string; // try to avoid any, but if you have 
> to, you can use any.
>
> 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 group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Angular 4 with electron error

2017-07-24 Thread Chuck James
Hi,


   I am using Angular 4 with electron. When I am trying to use 
electron command then I am receiving an error.

Error at run time: Uncaught TypeError: fs.existsSync is not a function

What I am trying to write:

import { shell } from 'electron';

/ /later in code in a method:

shell.openExternal(url); // to open a browser window. 


This error is not only for this command but it appears on any command from 
electron. Anybody any idea about this and how to fix it.

Thanks,
Chuck.





-- 
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 group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: How to get changes to webdriver-js-extender reviewed and merged

2017-07-24 Thread Sander Elias
Hi Em,

I'm looking into this. If you don't have heard back from me in a couple of 
day's, don't hesitate to remind me!

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 group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: [Angular] 4.3 HttpClient with Observable in a Service?

2017-07-24 Thread Sander Elias
Hi Alec,

Not trivial, but highly specific to your use-case. and your demands. can 
even change from endpoint to endpoint. For example, I do not really care 
about the 'otherUsersOpionionsOnThisProducts' endpoint, as that's not 
crucial to my program flow. However, I do care about the 'userCommitOrder' 
endpoint, as that's central to my business. 

Not all data is equally important. 

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 group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: [Angular] 4.3 HttpClient with Observable in a Service?

2017-07-24 Thread Alec Taylor
(or is this too trivial a function for me to PR?)

On Monday, July 24, 2017 at 11:22:37 PM UTC+10, Alec Taylor wrote:
>
> So basically I need to wrap a handler for some classes of errors at the 
> Service level, then return it as an Observable so that Subscribers from 
> Components can handle the other class of errors, and how to share 
> information to the user?
>
> Seems like the kind of wrapper Angular should provider out-of-the-box.
>
> On Monday, July 24, 2017 at 3:57:23 PM UTC+10, Sander Elias wrote:
>>
>> Hi Alec,
>>
>> If you want to propagate errors outside of your service, you have to 
>> (re)throw them from within your catch handler. If you don't, your server 
>> doesn't expose any error's. 
>> You have to me smart about this. Because, you might want to handle a 
>> 'data-not-there' error differently from an 'hey-you-need-to-be-authed' 
>> error, while you might just want to do a retry on a network-level error. 
>> It's not all black and white here, and you have to handle every situation 
>> differently. 
>>
>> 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 group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: [Angular] 4.3 HttpClient with Observable in a Service?

2017-07-24 Thread Alec Taylor
So basically I need to wrap a handler for some classes of errors at the 
Service level, then return it as an Observable so that Subscribers from 
Components can handle the other class of errors, and how to share 
information to the user?

Seems like the kind of wrapper Angular should provider out-of-the-box.

On Monday, July 24, 2017 at 3:57:23 PM UTC+10, Sander Elias wrote:
>
> Hi Alec,
>
> If you want to propagate errors outside of your service, you have to 
> (re)throw them from within your catch handler. If you don't, your server 
> doesn't expose any error's. 
> You have to me smart about this. Because, you might want to handle a 
> 'data-not-there' error differently from an 'hey-you-need-to-be-authed' 
> error, while you might just want to do a retry on a network-level error. 
> It's not all black and white here, and you have to handle every situation 
> differently. 
>
> 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 group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] How to get changes to webdriver-js-extender reviewed and merged

2017-07-24 Thread EM
Hello all,

I'm not sure this is the right place to ask this question, but I've been 
trying to push some changes for the webdriver-js-extender [1] a few months 
ago and never received any kind of feedback. As I see that some new PRs 
have been created and they are also pending, is there any chance the 
project is defunct or there's maybe a new reviewer which could take over 
the review process?

T&&R, EM.

[1] https://github.com/angular/webdriver-js-extender/pull/13

-- 
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 group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: accessing model data from some components

2017-07-24 Thread Stéphane Ancelot
I submitted an answer working here 
: 
https://stackoverflow.com/questions/31026886/how-do-i-share-data-between-components-in-angular2/45274521#45274521


Le mercredi 19 juillet 2017 11:45:27 UTC+2, Stéphane Ancelot a écrit :
>
> Hi,
> I may have misunderstood the concept of model.
>
> I have 2 components : 
>
> c1 : is a form panel with data in ngModel , data are stored in a model 
> class.
>
> c2 : need to use data from c1 component.
>
> I am unable to access data in model from c2.
>
> please can you provide me with some tips/examples.
>
> Regards
> S.Ancelot
>

-- 
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 group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.