JavaScript for Line of Business Applications
596.1K views | +0 today
Follow
JavaScript for Line of Business Applications
Keeping track of current JavaScript Frameworks that help design your clientside Business Logic Layers.
Curated by Jan Hesse
Beam to my Inbox:
Your new post is loading...
Your new post is loading...

Popular Tags - Filter using the Funnel

Current selected tags: 'AngularJS', 'jQuery'. Clear
Scoop.it!

Refactoring single page app

Refactoring single page app | JavaScript for Line of Business Applications | Scoop.it

The following is my step-by-step refactoring path, including close look at some MVC-ish solutions. You can use it to get ideas on revamping your own spaghetti app, and/or to see how to approach design of <canvas>-based app, specifically. Each step is made as a separate commit in fabricjs.com repo on github.

No comment yet.
Scoop.it!

How do I "think in AngularJS" if I have a jQuery background?

How do I "think in AngularJS" if I have a jQuery background? | JavaScript for Line of Business Applications | Scoop.it

Suppose I'm familiar with developing client-side applications in jQuery, but now I'd like to start using AngularJS. Can you describe the paradigm shift that is necessary ? Here are a few questions that might help you frame an answer:

* How do I architect and design client-side web applications differently? * What is the biggest difference?
* What should I stop doing/using; what should I start doing/using instead?
* Are there any server-side considerations/restrictions?

No comment yet.
Scoop.it!

Combining AngularJS with Existing (jQuery) Components

Combining AngularJS with Existing (jQuery) Components | JavaScript for Line of Business Applications | Scoop.it

A common question when looking at AngularJS for the first time is about how to combine it with existing JavaScript code and components. For jQuery UI in particular, the team around AngularJS has created the AngularUI project (http://angular-ui.github.com/) which provides an easy way to use jQuery UI with Angular.). For other frameworks - or especially for your custom DOM-manipulating code - the necessary steps might not be as obvious at the first glance.

Most existing components (especially in the jQuery-world) usually work in a different way. Without Angular, when you wanted to achieve a certain behavior, like displaying a date-picker, you would usually go with a jQuery UI extension (like 'datepicker') and use call similar to $("#someinput").datepicker({...}). This would extend a standard <input> element with an ID of someinput to be turned into a datepicker.

In this command's options, you would have usually specified a callback to be invoked whenever the user selects/changes the date in the input box. But you wouldn't do this just for a single datepicker -- no, this kind of jQuery UI-extension would be littered throughout your business code for nearly every input control in your HTML. After all, your datepickers need access to the underlying model values to restrict the input to valid ranges and to perform additional validation if necessary. This mix of business code and DOM-manipulating code is sometimes the reason for maintenance headaches of JavaScript developers.

With this in mind, you can see the conundrum: how do you take classic JavaScript code (with this mix of DOM interactions and event handlers with direct manipulation of underlying business objects) and put it into the well defined structure of AngularJS?


No comment yet.
Scoop.it!

AngularJS for jQuery Developers

AngularJS for jQuery Developers | JavaScript for Line of Business Applications | Scoop.it

AngularJS is a sweet web app framework. It comes with decent official documentation and samples, it looks superior among a large number of frameworks in an almost-real-world application test (the famousTodoMVC project), and there are cool presentations and screencasts about it all over the web.

But for a developer who has not used frameworks similar to Angular before, and has mostly worked withJavaScript libraries like jQuery, there may be some difficulty in shifting from the jQuery mindset to the Angular mindset. At least there was for me, and I’d like to share some notes–maybe this will be useful to someone.

* Not a Library
* Declarative, rather than Imperative
* Two-way Data Binding
* Dependency Injection
* Data Access

No comment yet.
Scoop.it!

Revealing the Magic of JavaScript

Revealing the Magic of JavaScript | JavaScript for Line of Business Applications | Scoop.it
This article examines some of the "magic tricks" performed by modern frameworks. The author then pulls back the curtain to show how the magic works.
  • Creating DOM Elements From a String
  • Revealing AngularJS Dependency Injection
  • Adopting Ember’s Computed Properties
  • The Crazy React Templates
  • Summary
No comment yet.
Scoop.it!

Create a "load more" widget using AngularJS, Ajax and Bootstrap 3

Create a "load more" widget using AngularJS, Ajax and Bootstrap 3 | JavaScript for Line of Business Applications | Scoop.it

Step 1: Getting the data ready
Step 2: Creating a basic scaffolding
Step 3: Creating a Factory
Step 4: Interacting with the DOM (Document Object Model)

No comment yet.
Scoop.it!

Angular for the jQuery developer

Angular for the jQuery developer | JavaScript for Line of Business Applications | Scoop.it

One of the most commonly asked questions about learning AngularJS is how to think about it when coming from a jQuery background where manually manipulating the DOM tree is a requirement to adding interactivity to our web pages.

jQuery itself is simply a DOM manipulation utility belt. It is an imperative wrapper around DOM manipulation, not a tool for building web apps. We obviously can use jQuery to build dynamic websites, but that’s like using a hammer to cut through wood… Why not just buy a saw and do it right?

In this post, we’ll walk through how to think in Angular and provide a mental model for structuring how to think about building better, faster, more stable web apps with AngularJS.

Throughout this section, we’re working through a jQuery application and demonstrating how to build it in Angular.

No comment yet.
Scoop.it!

AngularJS for jQuery Developers

AngularJS for jQuery Developers | JavaScript for Line of Business Applications | Scoop.it

AngularJS is a sweet web app framework. It comes with decent official documentation and samples, it looks superior among a large number of frameworks in an almost-real-world application test (the famous TodoMVC project), and there are cool presentations and screencasts about it all over the web.

But for a developer who has not used frameworks similar to Angular before, and has mostly worked with JavaScript libraries like jQuery, there may be some difficulty in shifting from the jQuery mindset to the Angular mindset. At least there was for me, and I’d like to share some notes–maybe this will be useful to someone.

No comment yet.