angular


Changing Server port on Angular 2


i am trying to change the default "4200" port.
I tried adding the bs-config.json under src like this:
{
"port": 9002,
"files": ["./src/**/*.{html,htm,css,js}"],
"server": { "baseDir": "./src" }
}
but it did not work.
Moreover i searched in my whole project for port 4200 but i did not find the real configuration.
Please help me with this .
Thanks.
UPDATE
i added .ember-cli file in project root with custom port :
{
"port": 9002
}
and it works.
Depends on what server software you're using, but based on your port and configuration it's most likely one of these:
Angular2-cli
If you are using something like
ng serve
You are using angular2-cli, and need to provide at port argument like so:
ng serve --port 9002
Source: https://github.com/angular/angular-cli#usage
lite-server
If you're using lite-server, your configuration looks correct, so ensure the configuration is loaded at startup. The console output normally says something like 'couldn't find bs-config.json, using default settings'

Related Links

Setting class on ion-item when using *ngFor
TS2304: Cannot find name 'describe' in Webpack / Angular 2
Selectors name when naming directives
How to Authenticate Angular 2 with Firebase API using Auth0
Include user_metadata and app_metadata in JWT using Auth0
Primeng component calendar have a method for close the pop up calendar manually?
Angular test does not include import from node_modules
Convert Angular 4 web app to Angular Universal app
Generate a routing module while creating a module in angular-cli
What is the best practice to manage sessions with Ionic 2
Angular 2 Updating Component After Form Submit With New Data From Response
How to configure and use Auth-0 in Angular4
How to get meta tags work correctly in angular 2? [closed]
Angular2-highcharts switching option
How to make ViewChild work in a unit test
Angular 2 AOT: Getting lot of errors in index.d.ts

Categories

HOME
angular
node.js
menu
scadalts
jupyter-notebook
windows-installer
keyboard-shortcuts
chromium
mips32
apache-apex
soundcloud
amazon-sqs
sourceforge
pki
xfce
face-api
ractivejs
floyd-warshall
filenames
pi4j
hipchat
podcast
javabeans
opensaml
event-listeners
marytts
trace
behavior
tiles
tinyxml2
ikvm
cscope
greenlets
gyp
stdio
launch-agent
suppress-warnings
turtle-rdf
gio
mockery
unicorn
mapfragment
nested-forms
lzma
android-selector
website-deployment
oql
spawn-fcgi
kdiff3
ibm-jazz
mindbody
pdl
jedit
tess-two
tstringgrid
soundex
pig-udf
dcraw
sequel
opencv-features2d
ember-qunit
zurb-joyride
hasp
datacontext
nsurlprotocol
kendo-validator
microsoft-search-server
where-in
angularjs-e2e
uipicker
gwt-2.5
nsinteger
nested-queries
pubchem
.lrc
ora-01426
expandoobject
single-user
equivalent
xmlnodelist
set-include-path
httpverbs
id-generation
executequery
sqlmetal

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App