Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

docs(glossary): export in barrels #1326

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions public/docs/ts/latest/glossary.jade
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ include _util-fns
:marked
We can add a barrel to the `heroes` folder (called `index` by convention) that exports all of these items:
code-example(format='').
import * from './hero.model.ts'; // re-export all of its exports
import * from './hero.service.ts'; // re-export all of its exports
export * from './hero.model.ts'; // re-export all of its exports
export * from './hero.service.ts'; // re-export all of its exports
export { HeroComponent } from './hero.component.ts'; // re-export the named thing
:marked
Now a consumer can import what it needs from the barrel.
Expand Down