Skip to content

Instantly share code, notes, and snippets.

@rockyahmed
Last active April 7, 2021 06:38
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 rockyahmed/0398e575abcf45141a298abb72dcfa24 to your computer and use it in GitHub Desktop.
Save rockyahmed/0398e575abcf45141a298abb72dcfa24 to your computer and use it in GitHub Desktop.
Angular Command Language
===================================
Node Delete and new node install
===================================
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
nvm install 14.15.4
nvm alias default 14.15.4
===================================
Git Build File To Server
===================================
ng build --prod
http-server -p 8081 -c-1 dist/smartlotto-admin
===================================
New re Update branch file
===================================
git checkout branch name
git pull origin branch name
optional code If you want to reset then type this
git reset --hard
===================================
Pages Component Create
===================================
ng g c pages/settings/club-detail/club-home
===================================
Routing With Modules
===================================
ng g m pages/lotto --routing
===================================
Pages Create full route modules
with component
===================================
ng g m pages/settings/lotto --route lotto --module pages/settings/settings.module
===================================
Pages Create full route modules
with component with ngmodule declarations
===================================
ng g m pages/settings/lotto/user-journey --route user-journey --module pages/settings/lotto/lotto.module
===================================
Commit back to copy previous file
===================================
git reset --hard HEAD~2
===================================
Angular Class calling in css
===================================
:host ::ng-deep .class
===================================
Server Run
===================================
gulp serve:player
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment