question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Was the --poll flag removed in v6, or is that just an error in the newly committed docs? As per https://github.com/angular/angular-cli/issues/5212 it’s needed to support Docker on Windows, which is still the case as far as I’m aware.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
filipesilvacommented, May 1, 2018

Yeap, it should be on the next release of @angular-devkit/build-angular!

2reactions
rogusdevcommented, Nov 19, 2018

The new option is better than the old: it takes an argument for the milliseconds time to wait between polls. (You can see this in the commit referenced above.) However, if you simply pass --poll it has no default so it appears as if it is not working…

ng serve --host 0.0.0.0 --poll 200

^ Works as expected in vagrant on win10 host

ng serve --host 0.0.0.0 --poll

^ Does no polling, so perhaps a sensible default should be added? 500 or 1000 ms?

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the function of --poll flag in CLI - Stack Overflow
I was searching a solution for an issue which is in my angular project, ng serve --watch was ...
Read more >
ng serve - Angular
Option Description Value Type Default Value ‑‑hmr Enable hot module replacement. boolean false ‑‑host Host to listen on. string localhost ‑‑open Opens the url in default...
Read more >
Angular CLI - ng serve Command - Tutorialspoint
Sr.No. Option & Syntax Description 2 ‑‑aot=true|false Build using Ahead of Time compilation. 3 ‑‑baseHref=baseHref Base url for the application being built. 7 ‑‑deployUrl=deployUrl URL where...
Read more >
Polling in Angular - Medium
Open command prompt & navigate to the project directory using the cd command. Type ng serve in command prompt. After successful compilation, navigate...
Read more >
ng serve - Angular
Enables optimization of the build output. --poll. Enable and define the file watching poll time period in milliseconds. --port.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found