Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

ng serve host 0.0.0.0

ng serve --host 0.0.0.0    
ng serve --open --host 0.0.0.0 --disable-host-check

or in angular.json add this config
 "serve": {
      "builder": "@angular-devkit/build-angular:dev-server",
      "options": {
        "browserTarget": "project:build",
        "host": "0.0.0.0"
      },
 
PREVIOUS NEXT
Tagged: #ng #serve #host
ADD COMMENT
Topic
Name
1+4 =