0

As the title suggests, I'd like to have a common TypeScript code, mainly for server communication, that is somehow referenced by 2 Angular projects.

I'm thinking of making a common TypeScript project that is packaged and then consumed by the two, but I don't know how to do that (or if it's the best solution).

Any suggestions ?

1 Answer 1

1

mainly for server communication, that is somehow referenced by 2 Angular projects.

Best that you publish it as a seperate npm module. You can use use projects seemlessly from other typescript projects https://basarat.gitbooks.io/typescript/content/docs/node/nodejs.html

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.