I have a Angular 6 project which import an angular library.
I import components from library successfully, and now I'd like to have the AuthGuard Service in library, to share in all projects, but I can't do it.
I exported the AuthGuard in lib's public_api and provided in module, but I don't know how to access in project.
When I try to import like:
import { AuthGuard} from 'my-lib/lib/security/auth.guard';
I have the error:
Module not found: Error: Can't resolve 'my-lib/lib/security/auth.guard' in 'c:\workspace\my-project\src\app\portal'