Skip to content

Instantly share code, notes, and snippets.

@ivanbtrujillo
Last active March 5, 2017 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivanbtrujillo/df80c351772e7542866447bccd19323c to your computer and use it in GitHub Desktop.
Save ivanbtrujillo/df80c351772e7542866447bccd19323c to your computer and use it in GitHub Desktop.
Angular Cli with bootstrap 4 alpha

Includes Angular-cli, Bootstrap 4 alpha, Chai, Karma and Protractor

Update node using NVM:

nvm ls-remote
nvm install v7.7.1

Install angular cli:

npm i -g @angular/cli

Generate new project.

ng new Angular-Project

Install bootstrap 4 alpha and add it to Angular Cli npm install bootstrap@next Then add the needed script files to to scripts in angular-cli.json file:

 "scripts": [
    "../node_modules/bootstrap/dist/js/bootstrap.js"
    ],

Finally add the Bootstrap CSS to the styles array:

"styles": [
    "styles.css",
    "../node_modules/bootstrap/dist/css/bootstrap.css"
    ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment