AngularJS Directives : Scopes.

Scopes and their inheritance is something you will frequently be dealing with in AngularJS applications. This is especially true in the context of directives, as they are subject to the scopes they are inserted into and, therefore, require careful management in order to prevent unexpected functionalities. Fortunately, AngularJS directives afford several robust tools that help […]

Read More

AngularJS forms validation

The AngularJS support for form validation is based on directives that replace the standard HTML elements like form and input. You don’t have to do anything to use the directives for form elements. AngularJS applies them automatically when it encounters form, input, select, and textarea elements. The directives provide AngularJS features for forms seamlessly, and […]

Read More

Hoisting in Javascript.

Hoisting is JavaScript’s default behavior of moving all declarations to the top of the current scope (to the top of the current script or the current function). In JavaScript, a variable or function can be declared after it has been used. In other words; a variable or function can be used before it has been […]

Read More

Closures in Javascript.

According to Mozilla Developer Network: Closures are functions that refer to independent (free) variables. In other words, the function defined in the closure ‘remembers’ the environment in which it was created. Another short description: Whenever you see the function keyword within another function, the inner function has access to variables in the outer function. That […]

Read More