How to hide Angularjs source codes?

前端 未结 5 1002
有刺的猬
有刺的猬 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:01

    You cannot hide angualrjs. Its based on Javascript. To minify, doesn't help because anyone can convert it back to human readable view (sure if anyone wants to steal your code). Any sensitive logic try to put on server side.

    Hope it will hep,

提交回复
热议问题