Click ⭐ if you like the project. Pull Request are highly appreciated. Follow me @thedevankit for technical updates.
- Installation
- Useful Commands
- Important Packages
- Awesome Packages
- Web Tutorials
- Video Tutorials
- Courses
- Free Courses
- Podcast for angular
- Blogs
- Projects with angular to contribute
- Angular common errors and features
- Trends in web technology
- Useful Code snippet
- Code snippet for from validation
- Interview Questions
- Angular Optimization and Hacks
- Contributing
npm install -g @angular/cli
The documentation for the command ist linked on the task description.
Parameters like <NAME>
should be replaced with the actual names of the element.
Task | Command | Popular Parameters |
ng new <PROJECT_NAME> |
|
|
ng serve
ng s (Run the angular app.)
ng s -o (Open angular app in browser.) |
|
|
ng generate module <NAME>
ng g m <NAME> |
|
|
ng generate component <NAME>
ng g c <NAME> |
|
|
ng generate interface <NAME> <TYPE>
ng g i <NAME> <TYPE> |
The |
|
ng generate service <NAME>
ng g s <NAME> |
|
|
ng generate guard <NAME>
ng g g <NAME> |
|
ng update @angular/cli@10 @angular/cdk@10 @angular/core@10 @angular/common@10 @angular/forms@10 @angular/router@10 @angular/material@10 --force
ng update @angular/cli@11 @angular/cdk@11 @angular/core@11 @angular/common@11 @angular/forms@11 @angular/router@11 @angular/material@11 --force
ng update @angular/cli@12 @angular/cdk@12 @angular/core@12 @angular/common@12 @angular/forms@12 @angular/router@12 @angular/material@12 --force
ng update @angular/cli@13 @angular/cdk@13 @angular/core@13 @angular/common@13 @angular/forms@13 @angular/router@13 @angular/material@13 --force
ng update @angular/cli@14 @angular/cdk@14 @angular/core@14 @angular/common@14 @angular/forms@14 @angular/router@14 @angular/material@14 --force
- Link: (https://www.npmjs.com/package/bootstrap)
- Installation steps: Add Bootstrap js and bootstrap css in angular.json at style and script.
- npm install @ngxs/store --save
- Documentation : https://www.ngxs.io
- Practical video tutorial : https://www.youtube.com/watch?v=4gkVp9OHpi0
- npm install --save @ng-bootstrap/ng-bootstrap
- Link : https://ng-bootstrap.github.io/#/home
- ng add @angular/material
- Link: (https://www.npmjs.com/package/@angular/material)
- https://github.com/zxing-js/ngx-scanner
- Info: Add support for QR code scanner in web app.
- Installation steps: Add Jquery js before bootstrap js in angular.json at style and script.
- Link: (https://www.npmjs.com/package/jquery)
- npm install --save @ng-select/ng-select
- https://www.npmjs.com/package/@ng-select/ng-select
- npm install angular-image-slider --save
- Link: (https://www.npmjs.com/package/angular-image-slider)
- npm i -S ngx-scrollbar @angular/cdk
- Link: (https://www.npmjs.com/package/ngx-scrollbar)
- npm i ng2-search-filter --save
- Link: (https://www.npmjs.com/package/ng2-search-filter)
- npm i ngx-ui-loader
- Link: https://www.npmjs.com/package/ngx-ui-loader
- npm install ngx-skeleton-loader --save
- Used for: Loading content (better ux)
- Link: https://github.com/willmendesneto/ngx-skeleton-loader
- npm install ngx-toastr --save
- Link: (https://www.npmjs.com/package/ngx-toastr)
- ng add ngx-face-api-js
- Link: https://ngx-face-api-js-demo.stackblitz.io/
- npm install @ngmodule/material-carousel --save
- Link: https://gsr.dev/material2-carousel/
- npm install --save ng5-slider
- Link: (https://www.npmjs.com/package/ng5-slider)
- npm install @ctrl/ngx-emoji-mart
- Link: https://www.npmjs.com/package/@ctrl/ngx-emoji-mart
- Example link: https://github.com/ariang/EasyChat-scrummers
- npm install ngx-spinner --save
- Link: (https://www.npmjs.com/package/ngx-spinner)
- Link: https://github.com/cipchk/ngx-gesture-password
- Demo: https://cipchk.github.io/ngx-gesture-password/
- npm i ng-recaptcha --save
- Link: (https://www.npmjs.com/package/ng-recaptcha)
- npm i -S ngx-scrollbar @angular/cdk
- Link: (https://www.npmjs.com/package/ngx-scrollbar)
- npm install ngx-typed-text --save
- https://jghignatti.github.io/ngx-typed-text/
- npm install ngx-pagination --save
- Link: (https://www.npmjs.com/package/ngx-pagination)
-Link: https://github.com/marinantonio/angular-mat-table-crud
- npm install --save moment ngx-moment
- Link: https://www.npmjs.com/package/ngx-moment
- used for: Using Moment JS as a Pipe Angular for date time
- npm install ngx-toastit --save
- Link: https://monolizard.github.io/ngx-toastit/
- npm install ngx-beautiful-charts --save
- Link: https://snowpu.github.io/ngx-beautiful-charts/
- npm i angular-ng-autocomplete
- Link : https://www.npmjs.com/package/angular-ng-autocomplete
- Example Link: https://stackblitz.com/edit/angular-ng-autocomplete?file=src%2Fapp%2Fapp.module.ts
- Link: https://tachyons.io/ A lightweight CSS Toolkit that is good for your angular application.
- npm install ngx-validate
- Link: https://github.com/EdenWoo/ngx-validate
- npm install -g json-server
To Run json server- json-server --watch db.json
- json-server --watch db.json --port 3004
- npm install http-server-spa -g
- Usage: http-server-spa
- Link: https://www.npmjs.com/package/http-server-spa
- npm install --save ngx-lightbox
- Used for: Imgage pop up
- Link: https://www.npmjs.com/package/ngx-lightbox
- npm i ngx-link-preview
- Used for: To show link preview
- Link: https://www.npmjs.com/package/ngx-link-preview
- npm i ngx-input-autocomplete
- https://www.npmjs.com/package/ngx-input-autocomplete
- npm i @angular/pwa
- Used for: To add PWA feature in angular web app
- Link: https://www.npmjs.com/package/@angular/pwa
- npm i ng-simple-slideshow
- Used for: Adding responsive image sliders/ Carousel
- Link: https://www.npmjs.com/package/ng-simple-slideshow
- npm i ng-image-slider
- Demo Link: https://sanjayv.github.io/ng-image-slider/
- Link: https://www.npmjs.com/package/ng-image-slider
- npm i angular-google-charts
- Used for: To add google charts in web app
- Link: https://www.npmjs.com/package/angular-google-charts
- Demo: Demo code
- Documentation: devrandom-official doc
- npm install ngx-infinite-scroll --save
- Used for: To load data from apis on scroll
- Link: https://www.npmjs.com/package/ngx-infinite-scroll
- Demo: ngx infinite scroll demo code
npm install @ngneat/spectator --save-dev
- Used for: Making more readable, sleek unit testing by getting rid of boilerplates
- Link: https://ngneat.github.io/spectator/
- Demo: NgNeat used in unit testing
- npm install --save ngx-webcam
- Used for: To load data from apis on scroll
- Link: https://www.npmjs.com/package/ngx-webcam
- Demo: ngx-webcam demo
Packages to export data in different file type.
- https://angular.io/start
- https://www.tutorialspoint.com/angular7/index.htm
- https://angular.io/tutorial
- https://www.thetechieshouse.com/
- angular-beginners-guide
- angular-forms-and-validations
- Build A Real World Beautiful Web APP with Angular 8
- Angular Blogs
- Adv-in-Angular
- Sitepen
- Principles For Better, Cleaner Code
- Learn Angular 8 Step By Step in 10 Days
- angular-cheat-sheet
- Crud operation using angular 8/9
- NGX-Admin
- Angular google maps
- NGX-charts
- Storybook
- Angularfire2
- Angular Material
- Angular-chat-sentiment-analysis
- Music-web-player
- GraphQL
- Great for big scope application and multiple endpoints.
- RSCSS
- A styleguide for creating styles, made by a filipino github contributor.
- Nrwl/Nx
- A tool for scaling multiple applications used by different developer teams within a single monorepo
- RxAngular
- A toolkit that priotizes app runtime performance, efficient template rendering, and improved developer experience
(How to solve)
- Angular 7 app getting CORS error from angular client
- Angular cors error
- Angular-jwt
- Angular-forms-and-validations
- Responsive bootstrap tabs
- Uploading-files-in-angular2
- Setup-a-proxy-for-api-calls
- 404-error-occur-when-i-refresh-through-the-browser
- How-to-get-route-path-parameters-in-non-routed-angular-components
- 48-answers-on-stack-overflow-to-the-most-popular-angular-questions
- angular-2-google-docs-viewer
- encrypt-the-string-in-typescript-and-decrypt-in-c-sharp
- anchorscroll-on-static-page-with-angular
- using sqlite as database for angular v7
- What is the proper use of an EventEmitter
-
Creating Modules for lazy loading Generates Module, component and route for the component.
ng generate module --module aap.module --route component component_name
-
Optimization of angular app: Angular apps can be optimized by removing the unused modules and references.
That can be done by setting sourceMap: True and NameChunks: true
Using source-map-explorer we can verify the bundle size and optimized it.npm i [email protected]
Details: https://www.npmjs.com/package/source-map-explorer/v/1.7.0
How to use: source-map-explorer foo.min.js(generated js file)
- On Top of this we have
- https://www.npmjs.com/package/@ngx-builders/analyze Run the source-map-explorer with zero configuration.
- ng add @ngx-builders/analyze --project={projectName}
- On Top of this we have
-
NGX-Quick Link It provides router preloading strategy which automatically downloads the lazy-loaded modules associated with all the visible links on the screen.
-
Angular Project Architecture
Please refer to the contributing file.