angular 6 from rookie to master - 1

1. Installing the angular-cli Package

sudo npm install --global @angular/[email protected]

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 [email protected]

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/

你可能感兴趣的:(angular 6 from rookie to master - 1)