Skip to content

Instantly share code, notes, and snippets.

@vinkrish
Created December 26, 2018 22:18
Show Gist options
  • Save vinkrish/55784c789458abee611615abfbb996d9 to your computer and use it in GitHub Desktop.
Save vinkrish/55784c789458abee611615abfbb996d9 to your computer and use it in GitHub Desktop.
npm update -g typescript
tsc -v
To check app version:
ng -v
npm install -g @angular/cli
ng new first-app
cd first-app
ng serve --open
npm install --save bootstrap@3
npm start
ng generate component other
ng g c another --flat -is -it
ng g c recipes --spec false -> to prevent testing files
ng generate directive theName
ng g d theName
ng new recipe-book --prefix rb
[sudo] npm uninstall -g angular-cli
npm cache clean
[sudo] npm install -g angular-cli@latest
ng github-pages:deploy
git remote remove origin
git remote add origin url
githubtree push --prefix dist origin master
ng build --prod
ng test -> to execute the unit test via Karma
ng e2e -> to execute the end to end tests via Protractor
window.open("https://www.google.com", "_blank");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment