Many a time there is a need to write front-end error to the back-end. Especially with frameworks like angularJS where the thick-client paradigm is in practice, logging to the server has its benefits. Here to accomplish this task, we use the built in $log service provided by angular to get the job done. Here we […]

Read More →

Decorator pattern allows behavior to be added to an individual object, either statically or dynamically, without affecting the behavior of other objects from the same class. Real world uses can be many, some of them are: Extending a third party service to suit your needs Cross cutting concerns like logging can be easily incorporated Consider […]

Read More →

In AngularJS $formatters are array of functions to execute, as a pipeline, whenever the model value changes. The functions are called in reverse array order, each passing the value through to the next. The last return value is used as the actual DOM value. Used to format / convert values for display in the control. […]

Read More →

In AngularJS parsers are used to sanitize / convert the $viewValue. $parsers are array of functions to execute, as a pipeline, whenever the control reads value from the DOM. The functions are called in array order, each passing its return value through to the next. The last return value is forwarded to the $validators collection. […]

Read More →