美文网首页
angular 6 from rookie to master

angular 6 from rookie to master

作者: ElliotG | 来源:发表于2018-10-12 16:12 被阅读0次

    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/

    相关文章

      网友评论

          本文标题:angular 6 from rookie to master

          本文链接:https://www.haomeiwen.com/subject/knxgaftx.html