Search code examples
angularjssource-code-protection

How to hide Angularjs source codes?


How to hide app.js, controller.js files or code?

They are visible in html source. Is there anyway to hide them?


Solution

    1. minify
    2. uglify along with minify you must uglify your code, which make it difficult to understand, it will renames the variables and function in very ugly manner, not easy to break the code.
      Also you can encrypt it well, you have and have to decrypt when it is needed to use, and that can't be remain hidden from the front end tools