Random (But Helpful) Utilities
Below are some helpful, possibly handy snippets that should help you, when you can't remember. Ever forget something? I do all the time....
- Generate a new component with the CLI ng g c componentName
- Start your project on a different port besides 4200 ng serve --port 9999
- Add Bootstrap CSS files to your project From the command line, in the root folder of your project, type: npm install --save bootstrap
Open root folder/.angular-cli.json in your favorite editor. Add the following under "apps", then under "styles"
"../node_modules/bootstrap/dist/css/bootstrap.min.css", DO NOT FORGET THAT COMMA ON THE END OR YOU'LL PULL YOUR HAIR OUT WONDERING WHY YOU NEVER FINISHED COLLEGE.