Angular Package Format
Closed this issue · 1 comments
CanKattwinkel commented
Bug Report or Feature Request (mark with an x
)
- [x] bug report -> please search issues before submitting
Repro steps.
using angular-cli
ng new some-project
yarn add ng2-sticky-kit
- Add
StickyModule
tosrc/app/app.module.ts
- use IDE (IntelliJ's) import shortcut
Desired functionality.
I'd expect to use my autocomplete feature in order to import the projects module. But I'm forced to use a manually created import line ( import {StickyModule} from 'ng2-sticky-kit/ng2-sticky-kit';
).
The required module export is missing. To preserve the struggle I'd recommend you to take a look at https://github.com/filipesilva/angular-quickstart-lib
It provides a decent build, supporting all required module systems.
More information can be found here.
makseo commented
Hi, @CanKattwinkel
Thank you for your great advice.
From version v5.0.0 you can use autocomplete import in your IDE :)