Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
thedevankit-0 authored Dec 3, 2020
1 parent c890f42 commit 203e617
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
+ [Angular common errors and features](#Angular-common-errors-and-features)
+ [Trends in web technology](#Trends-in-web-technology)
+ [Useful Code snippet](/UsefulCode)
+ [Angular Optimization and Hacks](/Angular-Optimization-And-Hacks)
+ [Angular Optimization and Hacks](#Angular-Optimization-And-Hacks)
+ [Interview Questions](#Interview)

### Installing Angular CLI:
Expand Down Expand Up @@ -320,10 +320,16 @@

## Angular Optimization And Hacks
1. Creating Modules for lazy loading
Generates Module, component and route for the component.
Generates Module, component and route for the component.
```
ng generate module --module aap.module --route component component_name
ng generate module --module aap.module --route component component_name
```
2. 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 can I support / Contributing
Your contributions to the repo are welcome. For major changes, please open an issue first to discuss what you would like to change.
Expand Down

0 comments on commit 203e617

Please sign in to comment.