![]() Open up a browser and type “localhost:4200” into the address bar and you should see this: Notice how in the screenshot above it says the development server is listening on localhost:4200 so that is where you need to go to take a look at the app. The server is always listening for changes so when you go into your app, update the code, and save it, the page will automatically reload to show the changes that were made. Two words will get the server up and running after the Angular app compiles. Then all we have to do is run the command that will start the server which is: Once we are ready to view the app all we need to do is make sure, in our command prompt, that we are currently located inside of the app’s folder like so:Īnd remember, you type the cd (change directory) command to get there. Luckily, when we created the app, it came with a local development server already built-in. To do that, we need to run the Angular app on our machine and we can’t do that without a server. Home | SkillForge Blog | How to run an Angular Application on a local development server How to run an Angular Application on a local development serverĪfter we’ve created an Angular App and have it open in our text editor we will want to see what the app looks like so we can test it.
0 Comments
Leave a Reply. |