I am new to angular,
started writing my first library, containing components, services, directives.
i listed my components, services, directives in the library's exports
array, but still:
When using the library form another library or application, and to compile successfully, i needed to list my components and services in the
public-api.ts
. why ? isn't the ngModule'sexports
array enough?now deleted the components,services, directives from the
exports
array and everything still works. why ?
reading around the docs at angular.io, it looks like public-api.ts
and exports
serve the same purpose - i am probably missing something basic here.