Skip to content

Instantly share code, notes, and snippets.

@sid226
Last active December 25, 2017 19:29
Show Gist options
  • Save sid226/e225f71593102e74b50548e81da43e9d to your computer and use it in GitHub Desktop.
Save sid226/e225f71593102e74b50548e81da43e9d to your computer and use it in GitHub Desktop.
angular 2/4 learn steps
https://angular.io/guide/quickstart
commands:
npm install -g @angular/cli
ng new my-angular-app
// install Angular v5 snippets Extension VSCODE
//serve UI for test
ng serve --port 9080
// Integrate bootstrap 4
https://getbootstrap.com/docs/4.0/components
npm install -–save bootstrap@next
npm install jquery@1.9.1
npm install popper.js@^1.12.3
//add bootstrap CSS
styles": [
"../node_modules/bootstrap/dist/css/bootstrap.min.css",
"styles.css"
],
//add bootstrap scripts
"scripts": [ "../node_modules/jquery/jquery.min.js",
"../node_modules/popper.js/dist/popper.min.js",
"../node_modules/bootstrap/dist/js/bootstrap.min.js"],
// New Component
ng generate component feature/my-new-component
https://angular.io/guide/router
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment