4

I have an Angular project with a library along with it. How do I create a component inside that library project?

1
  • How did you try to create it and what happened? Without e.g. a specific error message to search for this is going to be tricky for anyone with a similar problem to find. Commented Nov 21, 2019 at 7:45

1 Answer 1

9

By using --project flag. For a reference

Example

ng g c component-name --project=project-name
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.