Skip to content

Commit c9f424f

Browse files
committed
style: format item
1 parent 596b9d1 commit c9f424f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

content/architecture/use-modules-to-define-features.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
title: use modules to define features
3-
author:
3+
author:
44
name: Billy Lando
55
url: https://github.com/billyjov
66
---
77

8-
# Problem
8+
# Problem
99

1010
As an app scales, the root module starts growing and declaring a vast number of components increases the start time as well as affects the application's performance. Additionally, the more components we add to the root module, the harder it gets to understand the application's structure, and therefore making it hard to maintain.
1111

12-
# Solution
12+
# Solution
1313

1414
Using an `NgModule` to define features in Angular allows lazy loading, isolation and portability of this features. The purpose of feature modules is to organize relevant code into cohesive blocks. This helps to apply clear boundaries between features or application domains.
1515

@@ -42,8 +42,7 @@ export class ListPeopleComponent implements OnInit {
4242
export class AppModule {}
4343
```
4444

45-
The above can be refactored to:
46-
45+
The above can be refactored to:
4746

4847
```ts
4948

@@ -93,6 +92,6 @@ But we aware of possibly multiple service instances. For more information check
9392

9493
# Resources
9594

96-
- [Avoiding common confusions with modules in Angular](https://blog.angularindepth.com/avoiding-common-confusions-with-modules-in-angular-ada070e6891f) by Max Koretskyi
95+
- [Avoiding common confusions with modules in Angular](https://blog.angularindepth.com/avoiding-common-confusions-with-modules-in-angular-ada070e6891f) by Max Koretskyi
9796
- [Module vs Module](https://www.youtube.com/watch?v=ntJ-P-Cvo7o) by Deborah Kurata
9897
- [Angular documentation for Feature Modules](https://angular.io/guide/feature-modules)

0 commit comments

Comments
 (0)