concept export in category angular

This is an excerpt from Manning's book Angular Development with Typescript, Second Edition.
A feature module may declare its own components and services, but to make all or some of them visible to other modules, you need to export them. In this case, you need to add an exports section to the shipping module so it looks as follows.
Listing 2.8. Exporting a shipping component
@NgModule({ imports: [ CommonModule ], declarations: [ShippingComponent], exports: [ShippingComponent] #1 }) export class ShippingModule { }External modules will see only those members of the shipping module that were explicitly mentioned in exports. The shipping module may include other members, like classes, directives, and pipes. If you don’t list them in the exports section, these members will remain private to the shipping module and will be hidden from the rest of the app. Now you should include the shipping module in the root module.
Starting with ES6, modules have become part of the language, which means developers will stop using third-party libraries to implement various standards. A script becomes a module if it uses import and/or export keywords.
A module is just a JavaScript file that implements certain functionality and exports (or imports) a public API so other JavaScript programs can use it. There’s no special keyword to declare that the code in a particular file is a module. Just by using the keywords import and export, you turn a script into an ES6 module.
The import keyword enables one script to declare that it needs to use exported members from another script. Similarly, the export keyword lets you declare variables, functions, and classes that the module should be exposed to other scripts. Using the export keyword, you can make selected APIs available to other modules. A module’s functions, variables, and classes that aren’t explicitly exported remain private to the module.
ES6 offers two types of export usage: named and default. With named exports, you can use the export keyword in front of multiple members of the module (such as classes, functions, and variables). The code in the following file (tax.js) exports the taxCode variable and the functions calcTaxes() and fileTaxes(), but the doSomethingElse() function remains hidden to external scripts:
export let taxCode = 1; export function calcTaxes() { } function doSomethingElse() { } export function fileTaxes() { }