Skip to content

Commit 84c543a

Browse files
jelbournthePunderWoman
authored andcommitted
docs: update NgModule overview for standalone default (angular#58606)
This is the first commit towards updating the NgModule guide to reflect the fact that v19+ is standalone by default. This PR focuses on: * Updating the overview to give an actual overview of the most important/common uses of `NgModule` * Add callouts recommending standalone APIs over `NgModule` * Remove several stale docs that no longer make sense in v19+ This guide (directory) needs additional follow up work; I plan to address the remaining content in follow-up changes. PR Close angular#58606
1 parent 4f7ad3a commit 84c543a

File tree

10 files changed

+129
-729
lines changed

10 files changed

+129
-729
lines changed

adev/src/app/sub-navigation-data.ts

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,36 +1457,6 @@ const REFERENCE_SUB_NAVIGATION_DATA: NavigationItem[] = [
14571457
path: 'guide/ngmodules',
14581458
contentPath: 'guide/ngmodules/overview',
14591459
},
1460-
{
1461-
label: 'JS Modules vs NgModules',
1462-
path: 'guide/ngmodules/vs-jsmodule',
1463-
contentPath: 'guide/ngmodules/vs-jsmodule',
1464-
},
1465-
{
1466-
label: 'Launching your app with a root module',
1467-
path: 'guide/ngmodules/bootstrapping',
1468-
contentPath: 'guide/ngmodules/bootstrapping',
1469-
},
1470-
{
1471-
label: 'Sharing NgModules',
1472-
path: 'guide/ngmodules/sharing',
1473-
contentPath: 'guide/ngmodules/sharing',
1474-
},
1475-
{
1476-
label: 'Frequently used NgModules',
1477-
path: 'guide/ngmodules/frequent',
1478-
contentPath: 'guide/ngmodules/frequent',
1479-
},
1480-
{
1481-
label: 'Feature modules',
1482-
path: 'guide/ngmodules/feature-modules',
1483-
contentPath: 'guide/ngmodules/feature-modules',
1484-
},
1485-
{
1486-
label: 'Types of feature modules',
1487-
path: 'guide/ngmodules/module-types',
1488-
contentPath: 'guide/ngmodules/module-types',
1489-
},
14901460
{
14911461
label: 'Providing dependencies',
14921462
path: 'guide/ngmodules/providers',
@@ -1502,11 +1472,6 @@ const REFERENCE_SUB_NAVIGATION_DATA: NavigationItem[] = [
15021472
path: 'guide/ngmodules/lazy-loading',
15031473
contentPath: 'guide/ngmodules/lazy-loading',
15041474
},
1505-
{
1506-
label: 'NgModule API',
1507-
path: 'guide/ngmodules/api',
1508-
contentPath: 'guide/ngmodules/api',
1509-
},
15101475
{
15111476
label: 'NgModule FAQs',
15121477
path: 'guide/ngmodules/faq',

adev/src/content/guide/ngmodules/api.md

Lines changed: 0 additions & 46 deletions
This file was deleted.

adev/src/content/guide/ngmodules/bootstrapping.md

Lines changed: 0 additions & 152 deletions
This file was deleted.

adev/src/content/guide/ngmodules/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Declare them in a module if they belong to that particular module.
1313

1414
## What is a `declarable`?
1515

16-
Declarables are the class typescomponents, directives, and pipes— that you can add to a module's `declarations` list.
16+
Declarables are the class typescomponents, directives, and pipes— that you can add to a module's `declarations` list.
1717
They're the only classes that you can add to `declarations`.
1818

1919
## What classes should I *not* add to `declarations`?

0 commit comments

Comments
 (0)