Skip to content

Instantly share code, notes, and snippets.

@sachinkmohan
Last active May 23, 2020
Embed
What would you like to do?
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