Tag Archives: RequireJS

AngularJS Lazy Loading with Requirejs and OcLazyload

Angularjs Lazy Loading with Requirejs and OcLazyload
// CodeProject Latest Articles

Implementing lazy loading in anuglarjs application with Requirejs and OcLazyLoad

Modularizing TypeScript + RequireJS + AngularJS + OWIN (WebAPI + FileServer)

Modularizing TypeScript + RequireJS + AngularJS + OWIN (WebAPI + FileServer)
// CodeProject Latest Articles

This post shows a way to structure the web application scripts using TypeScript so that a modular approach may be achieved.

HTML Data Grid with CRUD Operations in ASP.NET MVC using Knockout.js, Require.js and WEB API

via HTML Data Grid with CRUD Operations in ASP.NET MVC using Knockout.js, Require.js and WEB API.

Typically, HTML tables in an application are simply used to display a collection of data from external sources. But what if we are able to extend the behavior of the HTML table to replicate a basic Data Grid like functionality with CRUD operations, as found in server-side solutions? In this article we will use the Knockout.js library for Model creation and Databinding and jQuery Library for managing Ajax calls to a service created using ASP.NET WEB API.

Using GMap in RequireJS, with Backbone

via rockylhc.com | Using GMap in RequireJS, with Backbone.

As a web developer, I have been doing a lot of websites that rely on javascript heavily. And most of the time, I just build the website with only one javascript, with plenty of jquery plugin, to get the job done. Then, it ends up with a massive chunk of javascript when the project getting bigger and bigger, which is a big mess.

Until lately, I thought about using a framework, an architectural design pattern to help me to tidy up my scripts. So here’s my first step, try to collaborate some of the rising, new, and useful javascript tools, to create a map based web app. And the tools that’s in my scope are:

So the starting is quite easy, just insert

Knockout Component Loading with requirejs won’t load html file

Knockout 3.2 introduces component loading – this is a great feature that allows you to load HTML and JS modules into your code, thus enabling you to split your code in to self contained modules. Think of it like PartialViews in MVC but for KnockoutJS. The first thing you need to do is ‘register’ your […]


Using RequireJS in AngularJS Applications

via Using RequireJS in AngularJS Applications.

RequireJS is a JavaScript library that helps in lazily loading JavaScript dependencies. Modules are just JavaScript files with some RequireJS syntactic sugar in them. RequireJS implements Asynynchronous Modules specified by CommonJS. RequireJS offers simple APIs to create and refer to modules.

Part 1: From RequireJS to Webpack

via Jamund’s Coding Blog: From Require.js to Webpack – Part 1 (the reasons).

Wherein I layout all of the reasons why we decided to move off of require.js and on to webpack.

About 2 months ago we completed a migration from require.js to webpack. Require.js had been the primary UI module system at PayPal and was baked into the default template kraken server we use to build our applications. Everyone was familiar with it and it worked pretty well. Despite our success with it, I identified a few features that were provided by webpack that ultimately led my team to migrate off of require.js. This is an overview of the reasons why we chose webpack.

I hope this proves helpful to you as you seek to improve your own module/build systems!