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

Commit aaa927b

Browse files
fmalcherwardbell
authored andcommitted
docs(glossary): export in barrels
closes #1326 The example is about exports, so no imports here
1 parent cc450ad commit aaa927b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/docs/ts/latest/glossary.jade

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ include _util-fns
7272
:marked
7373
We can add a barrel to the `heroes` folder (called `index` by convention) that exports all of these items:
7474
code-example(format='').
75-
import * from './hero.model.ts'; // re-export all of its exports
76-
import * from './hero.service.ts'; // re-export all of its exports
75+
export * from './hero.model.ts'; // re-export all of its exports
76+
export * from './hero.service.ts'; // re-export all of its exports
7777
export { HeroComponent } from './hero.component.ts'; // re-export the named thing
7878
:marked
7979
Now a consumer can import what it needs from the barrel.

0 commit comments

Comments
 (0)