Re: [AngularJS] Re: read data from serial port using angular2

2019-08-14 Thread Sander Elias
https://github.com/garrows/browser-serialport

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/07b803ec-7f84-4472-a647-b57ff0c28d13%40googlegroups.com.


Re: [AngularJS] Re: read data from serial port using angular2

2019-08-14 Thread Jitendra Rajauriya
thanks for reply i want to client side serial communication with existing
angular project.
can you give me better solutions.

Thanks

On Wed, Aug 14, 2019 at 1:53 PM Sander Elias  wrote:

> Hi Jitendra,
>
> Is the serialPort module suited for use in a browser? A lot of NPM modules
> only work in a server setting!
>
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/angular/768646a7-f0bb-48db-b22f-1219140df2b1%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/CAOjX4BzsCLObXxx-%2BrhEUCbM0zY-HWwVbKKGb9D41qcJ%2B-xMCw%40mail.gmail.com.


[AngularJS] Re: Angular 8 with an api

2019-08-14 Thread Sander Elias
Hi Tito,

1, Yes, perhaps take a look an NX from Nrwl, it even provides generators 
that deal with this.
2. use the scripts section in your package.json.

```
scripts : {
  startAll: 'ng serve && node server/server
}
```

you might want to use a tool to start them in parallel, there are several 
NPM modules that take care of this.

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/17fee26d-9844-4fb0-948e-cf014e90ae5f%40googlegroups.com.


[AngularJS] Re: bootstrapping a different module on main module exception

2019-08-14 Thread Sander Elias
Hi Silvio

use a bootStrapModuleFactory 
instead: https://angular.io/api/core/PlatformRef#bootstrapmodulefactory

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/0fdd304d-0fe3-47fd-aba9-7510760ea9db%40googlegroups.com.


[AngularJS] Re: Google Chart Visualization loading issue.

2019-08-14 Thread Sander Elias
Hi Komal,

This is about change-detection. The setTimeout forces a cycle in the 
change-detection.
Also, it might take some time to load and draw the chart, and your generous 
time allows for this.

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/411ddea6-f9ec-46ab-800e-30b6cd47485d%40googlegroups.com.


[AngularJS] Re: Question about forkProcess in /lib/launcher.ts

2019-08-14 Thread Sander Elias
Hi Barret,

This is an optimization. Creating a fork takes resources/time. It's a waste 
if you only have 1 task. Testing takes long enough as it is. That is the 
reason it's built like this.

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/f1b5358b-139d-44a9-a30f-e3ebb98d8b0d%40googlegroups.com.


[AngularJS] Re: data persistence

2019-08-14 Thread Sander Elias
Hi Vishal,

The size of the pages of your request and the side of the pages on the UI 
doesn't need to be in sync. There is no issue in caching a couple of 
thousands of rows in your frontend services.  
it takes some planning and calculation. for example, if you keep 10 pages 
of data in the buffer, you might want to get the next batch when you are 
hitting page 8 or 9. 

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/6ce84ecf-b529-4817-a5bf-0dec9f5c9208%40googlegroups.com.


[AngularJS] Re: Using jQuery With Angular is it best practice and why would you do it?

2019-08-14 Thread Sander Elias
Hi Alex,

1. yes.
2. no, it is not, but there are cases when it's still needed.
3. There are security implications that come with jQuery, as there are with 
Angular. I'm not aware of an enlarged risk when those are mixed.

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/af80a75d-57bf-4815-ad87-47b7fd15fcfd%40googlegroups.com.


[AngularJS] Re: read data from serial port using angular2

2019-08-14 Thread Sander Elias
Hi Jitendra,

Is the serialPort module suited for use in a browser? A lot of NPM modules 
only work in a server setting!

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/768646a7-f0bb-48db-b22f-1219140df2b1%40googlegroups.com.


[AngularJS] Re: localhost is refusing to connect

2019-08-14 Thread Sander Elias
Hi Dale,

Can you try another port? I'm using this many times a day without an issue!

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/19edb550-500d-448b-8e17-917fc8006231%40googlegroups.com.


[AngularJS] localhost is refusing to connect

2019-08-14 Thread Dale Francis
If I try to launch a new Angular app, I get the error "localhost is 
refusing to connect".  
This comes when I attempt to use a server in this manner: 

ng serve --port 3000 --open

Advice?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/cfaaf505-b4aa-4350-90cb-2ec57630b99f%40googlegroups.com.


[AngularJS] read data from serial port using angular2

2019-08-14 Thread Jitendra Rajauriya
We want to serial port communication using existing angular2 project.

I installed the following.
npm install serialport --save
npm install @types/serialport --save

and

import { SerialPort } from 'serialport' in component.ts
serialPort: typeof SerialPort;


now we got undefined from serialPort.
and got the Can't resolve 'child_process' node_modules\@serialport\bindings\lib 

 error for get port.
any one can help.



-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/262858bb-daf9-4a6c-9489-49f923ee0601%40googlegroups.com.