0

my question is how to hide the source code of an angular application from browser, because i created a web app with angular , but the source code is appear on the development tool, and i don't know how to hide it and protect my code. thank you for your help

1
  • 1
    You can't: the browser needs access to the code in order to execute it Commented Oct 28, 2018 at 0:34

1 Answer 1

2

This is not possible for typical web applications based upon HTML, CSS and JavaScript.

What you can do is take extra measures to uglify your code which makes it difficult but not impossible to recreate it.

For this to happen you have to build your code using the --prod flag which also offers other advantages.

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

1 Comment

Are there other ways to do this other than --prod ?

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.