ultrasonicsoft / ng-debug-decorator

Angular Debug decorator to skip function from production

Home Page:https://medium.com/@balramchavan/debug-decorator-for-angular-and-node-js-584bd170cdad

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Angular DEBUG Decorator

Introduction

You can apply @Debug() decorator on your Angular application methods to mark them to be executed in debug mode only.

When you build application for production using ng build --prod command, all methods marked with @Debug() decorator will not be exeucted in production mode.

So no more if(environment.production){} code block in your source code.

About

Angular Debug decorator to skip function from production

https://medium.com/@balramchavan/debug-decorator-for-angular-and-node-js-584bd170cdad


Languages

Language:JavaScript 58.9%Language:TypeScript 41.1%