為什麼需要用到 Decorators?
其一是你不想破壞原有的行為或是原有的程式碼,
去擴增或是覆寫現有功能,
之前一篇 JSNLog integrate to AngularJS 就是利用了 Decorator 裝飾掉 expectionHandle,
今天這篇主來更深入研究 AngularJS Decorator
為什麼需要用到 Decorators?
其一是你不想破壞原有的行為或是原有的程式碼,
去擴增或是覆寫現有功能,
之前一篇 JSNLog integrate to AngularJS 就是利用了 Decorator 裝飾掉 expectionHandle,
今天這篇主來更深入研究 AngularJS Decorator