gmostert / ng2-breadcrumb

This is an angular 2 component that creates a breadcrumb trail. It hooks into the angular2/router, to dynamically build up the crumb trail once a component is routed to.
MIT License
102 stars 81 forks source link

Add typings field #65

Closed killzoner closed 7 years ago

killzoner commented 7 years ago

This pull request allows you to simplify code and work with proper TS config.

For now, we have to work with this sort of import even if we have proper "main" field : import {Ng2BreadcrumbModule} from 'ng2-breadcrumb/ng2-breadcrumb';

With this commit we can use import {Ng2BreadcrumbModule} from 'ng2-breadcrumb';

Until then, the only way to work with this shortcut was specifying "include": [ "node_modules/**/*.d.ts" ], in tsconfig file, or use specific path mapping, which is king of ugly.

EDIT: By the way, it seems that "bundles" files are not up to date with source "app" files. I cannot push them right now but it would be good to generate them as well with up to date sources.

Thanks