1. Installing the angular-cli Package
sudo npm install --global @angular/cli@6.0.8
check version:
ng -v
2. Creating the Project
ng new [project name]
3. Adding the Bootstrap CSS Package
3-1) install bootstrap
cd [project name]
npm install bootstrap@4.1.1
3-2) configure css in angular.json
"styles": [
"src/styles.css",
"node_modules/bootstrap/dist/css/bootstrap.min.css"
],
4. Starting the Development Tools
ng serve --port 3000 --open
now you can access your home page at
http://localhost:3000/
网友评论