ng build - Mangle私有财产的名字

时间:2018-04-14 13:08:35

标签: angular angularjs-ng-click uglifyjs

为什么使用<table class="table table-bordered table-sm"> <thead style="background:red;color:white"> <tr> <th rowspan="2">No</th> <th rowspan="2">Area</th> <th rowspan="2">Category</th> <th rowspan="2">Sub Category</th> <th rowspan="2">Risiko</th> <th rowspan="2">Cause</th> <th rowspan="2">Impact</th> <th rowspan="1" colspan="6">Analisis</th> <th rowspan="1" colspan="4">Evaluasi</th> <th rowspan="1" colspan="2">Risk Treatment Options</th> <th rowspan="2">Accountabel Unit</th> <th rowspan="2">Sumber Daya</th> <th rowspan="2">Deadline</th> </tr> <tr> <th colspan="2">Probabilitas</th> <th colspan="2">Impact</th> <th colspan="2">Risk Level</th> <th>PIC</th> <th>Urgency</th> <th>Existing Control</th> <th>Risk Control<br>Assessment</th> <th>Proaktif</th> <th>Reaktif</th> </tr> </thead> <tbody> </tbody> </table>生成的捆绑包不会破坏类私有属性?这将是一种简单的方法来减少已经足够胖的Angular束。

同样的事情对于仅在模板中使用的类属性很有用。从我的观点来看,它们应该被认为是私有的,因为它们是组件内部行为的一部分,但AOT要求它们是公开的,打破OOP封装和难以理解的缩小。

0 个答案:

没有答案