Implementing lazy loading in anuglarjs application with Requirejs and OcLazyLoad
Tag Archives: RequireJS
This post shows a way to structure the web application scripts using TypeScript so that a modular approach may be achieved.
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.
So the starting is quite easy, just insert
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 […]
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!