• Simplifying Custom Two-Way Data Binding in Angular

    There are three types of data bindings in Angular , they are as follows:

    1. Interpolation
    2. Event Binding
    3. Property Binding

    If you are coming from an Angular 1.X background, you might be wondering that where is the two-way data binding? Remember, the first time you saw AngularJS 1.X demo and you were just blown away the by power of ng-model? Yes, like you, I was also very impressed by power of two-way data binding in AngularJS…

    • Mon, Dec 12 2016
  • How to create constants in JavaScript?

    Constants are immutable variables which value cannot be changed. Once, you have created a constant, its value cannot be changed.

    While coding in JavaScript, many times you may have come across a requirement to create constants. Before ECMA Script 6, it was not very easy to create constants in JavaScript. In this post, I will show you to create constants in both ECMA Script 5 and ECMA Script 6.

    Constants in ECMA 5

    We…

    • Mon, Dec 5 2016