interfacewerk / iwerk-angular-ui

A collection of opinionated ui elements for Angular applications
https://interfacewerk.github.io/iwerk-angular-ui
MIT License
7 stars 3 forks source link

Can not resolve popover.directive on import #229

Closed ngfelixl closed 5 years ago

ngfelixl commented 5 years ago

The popover.directive is not importable to a component. It would be useful to do so because of the ViewChild selection.

Usage:

import { PopoverDirective } from 'iwerk-angular-ui/app/ui/popover/popover.directive';
[...]
class ExampleClass {
  @ViewChild(PopoverDirective)
  elementReference: ElementRef<HTMLElement>;
}

The error message is

Can't resolve 'iwerk-angular-ui/app/ui/popover/popover.directive'

Project dependencies and versions are:

"dependencies": {
  "@angular/animations": "^7.0.0",
  "@angular/common": "^7.0.0",
  "@angular/compiler": "^7.0.0",
  "@angular/core": "^7.0.0",
  "@angular/forms": "^7.0.0",
  "@angular/http": "^7.0.0",
  "@angular/platform-browser": "^7.0.0",
  "@angular/platform-browser-dynamic": "^7.0.0",
  "@angular/router": "^7.0.0",
  "iwerk-angular-ui": "^5.0.1"
}
kevinmerckx commented 5 years ago

Indeed! A PR is welcome ;)

ngfelixl commented 5 years ago

Ok, I go for it.

kevinmerckx commented 5 years ago

:tada: This issue has been resolved in version 7.0.0 :tada:

The release is available on npm package (@latest dist-tag)

Your semantic-release bot :package::rocket: