Skip to content

Instantly share code, notes, and snippets.

@sachinkmohan
Last active May 23, 2020 10:05
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 sachinkmohan/737e9224414181759bb43e9fd2a70bff to your computer and use it in GitHub Desktop.
Save sachinkmohan/737e9224414181759bb43e9fd2a70bff to your computer and use it in GitHub Desktop.
npm install -g @angular/cli
ng --version //tells you if ng is properly installed
ng new <name of the project> //creates new project
ng serve --open //opens it in the browser
ng generate component/NodeGraphs //creates a new folder called NodeGraphs in Angular
Short-form of the above
ng g c component/<Name of the Component>
// Creating a sercvice
ng g s services/Todo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment