First, we have to install angular-cli, which will be used to create an angular project, using npm.
npm install -g angular-cliAfter that using the angular-cli, we can create angular2 project.
ng new your-project-nameAnd go to the project directory and run the server.
cd your-project-name ng serveThe first project will be run on http://localhost:4200.
No comments:
Post a Comment