1

I am having a angular library in npm repo. Installed that library in another angular application.

Do we have any direct options to bootstrap the remote angular library from the main project? Need to initialize the routing, NgRx stores etc... from the angular library

1 Answer 1

0

You have to export all the initialization code first, that you want to call from the main application.

Then add these exports to the public.api.ts

Sample public api

export * from './example-data';

// The example-module file will be auto-generated. As soon as the
// examples are being compiled, the module file will be generated.
export * from './example-module';

After this is done, call the initialization code in the application and it should work as intended. Since no code is provided, please try this suggestion.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.