Require JS – Fundamentals – Part 2

Hi Friends,

In this section, we will continue from the previous post, where in we have seen how to get started with RequireJS. In this section, we are going to look how to construct modules and how DI(Dependency Injection) works? In the last section, we were still loading JQuery using direct reference. However, we can inject the same using require as well like shown below.

Continue reading “Require JS – Fundamentals – Part 2” »

1,423 total views, no views today

Getting Started with Require-JS -Part 1

Hi Friends,

In this section, we are going to look at one of the main parts of JavaScript components and that is RequireJS. In order to write enterprise level app, where in you end up writing tons of javascript, its really important to stick to Modularity. Every module and component should have its own meaning; its pretty much like “Single Responsibility Principle“. This way we can manage consistency, dependency across app. Everybody likes neat and clean code but very few follows the principle. I believe, it should be part of our DNA to write clean and maintainable code so that others can understand.


Continue reading “Getting Started with Require-JS -Part 1” »

2,970 total views, no views today