From 2f50f6c43d1ecf590a203b54c6397f4ea9e060b4 Mon Sep 17 00:00:00 2001 From: Ferdinand Malcher Date: Sat, 7 May 2016 20:53:21 -0600 Subject: [PATCH] docs(glossary): export in barrels The example is about exports, so no imports here --- public/docs/ts/latest/glossary.jade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/docs/ts/latest/glossary.jade b/public/docs/ts/latest/glossary.jade index 8bec5a5aa9..4999ae7af7 100644 --- a/public/docs/ts/latest/glossary.jade +++ b/public/docs/ts/latest/glossary.jade @@ -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.