How to hide Angularjs source codes?

前端 未结 5 1000
有刺的猬
有刺的猬 2021-02-02 00:36

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

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

5条回答
  •  星月不相逢
    2021-02-02 01:04

    This is the natural behaviour of a front-end framework; you do not hide the source code. There should be no sensitive data whatsoever in your front-end, especially no passwords. Just like Stack Overflow, all the font-end code is and will always be visible to the user.

提交回复
热议问题