Skip to content

Instantly share code, notes, and snippets.

@tareq3
Last active January 29, 2019 14:35
Show Gist options
  • Save tareq3/ac842b1130dd12a83135e4263934ac33 to your computer and use it in GitHub Desktop.
Save tareq3/ac842b1130dd12a83135e4263934ac33 to your computer and use it in GitHub Desktop.
## Angular 7 CLI
## install the angular cli
```
npm install -g @angular/cli
```
## create a new project
```
ng new app-name
```
## create project with scss
```
ng new ng6-proj --style=scss
```
## create project along with scss and routing
```
ng new ng6-proj --style=scss --routing
```
## run on development server
```
ng serve -o
```
### For generating any component
```
ng g c componentName
```
ng generate component componentName
### A Great example
https://coursetro.com/posts/code/154/Angular-6-Tutorial---Learn-Angular-6-in-this-Crash-Course
https://coursetro.com/posts/code/171/Angular-7-Tutorial---Learn-Angular-7-by-Example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment