JavaScript for Li...
Follow
Find tag "AngularJS"
401.2K views | +39 today
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...
Scoop.it!

Single page applications, Angular.js and accessibility

Single page applications, Angular.js and accessibility | JavaScript for Line of Business Applications | Scoop.it
This in-depth tutorial outlines some best practices and accessibility challenges common to SPAs (and specifically Angular apps).


Before we get started, you need to know… this tutorial isn’t designed to be “everything you’ll ever need to know about making Angular.js apps accessible.” This is a walk-through of some fairly common accessibility challenges to watch out for when building SPAs, and how you can address them when using Angular.js.

Here’s what we’re looking at:

more...
No comment yet.
Scoop.it!

Protractor: Tips & Tricks

The tips and tricks of using protractor for writing e2e tests with AngularJS
more...
No comment yet.
Scoop.it!

AngularJS for ASP.NET MVC Developers

Web Development: AngularJS for ASP.NET MVC Developers by Miguel A Castro

When using ASP.NET MVC, you need to to know how to set Angular up with regards to modules, controllers, and services. And the truth is that not the entire site needs to be one giant Single-Page-Application. I’ll show how to design an ASP.NET MVC site so that it includes pockets of SPA that use Angular, taking advantage of binding, routing, and even back-button support - all while remaining on the client.

more...
No comment yet.
Scoop.it!

AngularJS Best Practices

AngularJS Best Practices | JavaScript for Line of Business Applications | Scoop.it

I’ve been spending a lot of time building AngularJS front ends lately. I’ve tried to follow a number of style guides and best practices that have been published, but I found each had warts that bothered me to no end. As a result, I’ve pulled together my own variation of a best practice guide. I borrow heavily from others here, but this combination has worked incredibly well for me.

more...
No comment yet.
Scoop.it!

Improving the Angular Single-Page Application Loading Experience

Improving the Angular Single-Page Application Loading Experience | JavaScript for Line of Business Applications | Scoop.it

Single-page applications are notorious for a large, upfront loading hit. Angular is no exception. But it doesn’t stop there at the initial loading. API calls for data, sometimes massive amounts, are likely to be requested on route changes in the application. Leading to more, you guessed it, waiting. Just don’t make your users hold their breathe. Keep them engaged and improve your Angular single-page application loading experience.

Response times in any application need to be snappy, especially in an era of instant gratification and proliferation of distractions. Keeping a user’s attention is critical. Continuous feedback on the response state of the application should be provided to the user.

more...
No comment yet.
Scoop.it!

Introduction & Explore to AngularJS at 2015

Take a look at the most useful AngularJS tasks, and step through the construction of a simple application to explore the compelling features of the framework, including Directives, Databinding, Expressions, and Filtering. Plus, learn about taxonomy, language, structure, and more. Check out this informative AngularJS course!

more...
No comment yet.
Scoop.it!

Creating Container Components, Part 3: Angular 2 Component Directives

Creating Container Components, Part 3: Angular 2 Component Directives | JavaScript for Line of Business Applications | Scoop.it

Converts an Angular 1.3 container component into Angular 2 syntax, and compares the two.

Jan Hesse's insight:

https://www.airpair.com/javascript/posts/creating-container-components-part-1-shadow-dom

https://www.airpair.com/angularjs/posts/creating-container-components-part-2-angular-1-directives

https://www.airpair.com/angularjs/posts/creating-components-p3-angular2-directives

more...
No comment yet.
Scoop.it!

You put your React into my Angular

You put your React into my Angular | JavaScript for Line of Business Applications | Scoop.it

As our business grows, we are seeing more and more complex use-cases that put our UI under stress, such as hundreds of metrics and dimensions that make the rendering of the app in a localised place really challenging. We decided to tackle these problems in-depth, and came up with what we think is a balanced approach between React and AngularJS.

more...
No comment yet.
Scoop.it!

Creating container components in Web Components and Angular

Creating container components in Web Components and Angular | JavaScript for Line of Business Applications | Scoop.it
Architecting your Angular application with reusable components can be complicated. Many times, UI components that need multiple entry points for user markup and the standard ng-transclude do not do enough of what is required. Using Web Component standards, like the Shadow DOM, we can now enable our applications to easily handle this.
more...
No comment yet.
Scoop.it!

A 10 minute primer to the new Angular router

A 10 minute primer to the new Angular router | JavaScript for Line of Business Applications | Scoop.it

With the new router being released and not a huge amount of documentation being available yet, I decided to share my own personal notes I gathered while experimenting with the new router.

If you're currently using ngRoute or ui-router, it will take some mental shifting to get used to the new router and its concepts, so hopefully this article helps you avoid some of the pitfalls I encountered.

While ui-router is a state based router, I'd like to consider the new Angular router a component router, where components are fundamental building blocks of the modern web.

more...
No comment yet.
Scoop.it!

Performance of AngularJS, ReactJS and KnockoutJS Compared

Performance of AngularJS, ReactJS and KnockoutJS Compared | JavaScript for Line of Business Applications | Scoop.it
A performance comparison between React JS, Angular JS and Knockout JS when building large lists of data.
more...
No comment yet.
Scoop.it!

Boost the Performance of an AngularJS Application Using Immutable Data

Boost the Performance of an AngularJS Application Using Immutable Data | JavaScript for Line of Business Applications | Scoop.it

A react component gets rendered the same way when it receives the same input parameters and it has the same state (if you implement it properly). React even provides the PureRenderMixin, which can make the “pure component” rendering even faster!

React is awesome, there are no two opinions. I’m also huge AngularJS fan. A few years ago I wrote the first AngularJS Style Guide“AngularJS in Patterns”AngularAOP and a few other AngularJS modules/components/examples, which got popular. So I started wondering whether I can use the same idea of immutability of the model in AngularJS, at least for accelerating the data-binding watchers.

more...
No comment yet.
Scoop.it!

Building Realtime Applications Just Got Easy

Building Realtime Applications Just Got Easy | JavaScript for Line of Business Applications | Scoop.it

Creating realtime web applications has been possible for a while now, however up until recently it’s been kind of a pain and required a big engineering effort.

I think this is largely because the tools haven’t provided exactly what we needed to do realtime in a simple and painless way.

Luckily this has all changed, now it’s pretty easy to build realtime applications and it’s my goal to prove that to you in this episode.

The best way to prove this is by showing you, so we’ll build a simple single page application the uses realtime features from top to bottom.

more...
No comment yet.
Scoop.it!

Improving AngularJS long list rendering performance using ReactJS

Improving AngularJS long list rendering performance using ReactJS | JavaScript for Line of Business Applications | Scoop.it

In some cases you might be able to avoid this problem by using paging or infinite scrolling, but sometimes that's just not good enough. For example, lists that are displaying only a few items at a time (like any kind of a log) would simply be very impractical from the users point of view. Another reason - you might be using libraries like SlyJS that load a whole list at once to calculate the size of the embedded scrollbar and to make list swiping and elastic bounds work properly. Ooooor - your client simply demands it. :)

more...
No comment yet.
Scoop.it!

AngularJS Tutorial: Learn to Build a Real-Time Reddit Clone

AngularJS Tutorial: Learn to Build a Real-Time Reddit Clone | JavaScript for Line of Business Applications | Scoop.it

By building ang-news, you will learn how to develop CRUD (create, read, update, delete) services, securely authenticate users, access servers with $http, communicate with REST APIs using $resource, enable three-way data binding with your server, create directives for your user interface and more.

Once you have finished building the ang-news application, your users will be able to:

  • Sign up for an account on your site
  • Post links to the site, as well as delete their own links
  • Comment on links
  • Have a user profile with a picture and a list of user's posts
more...
No comment yet.
Scoop.it!

Containers and Components in Angular 1

Containers and Components in Angular 1 | JavaScript for Line of Business Applications | Scoop.it

In this post, I want to explore a different approach to writing directives in Angular 1. As we know, building applications in Angular 2 is going to be different from what we’re used to in Angular 1. For example,ng-controller will be gone, and components will be the building blocks of applications.

What exactly is a component? It is essentially a thing that encapsulates an internal state and manages external interactions. The interactions could be with the user or with other components.

Since I’ve been working heavily with React recently, I want to see how we can borrow some ideas from there and apply them to Angular 1 directives.

In particular, I want to explore the idea of Containers and Components in Angular 1.

more...
No comment yet.
Scoop.it!

Web Components in Angular, Ember, and React.

Web Components in Angular, Ember, and React. | JavaScript for Line of Business Applications | Scoop.it

So why would you want to put a Web Component in an app built with one of these frameworks? Web Components let you create elements that apps can interface with in the same way that they already interface with native elements. That means that a Web Component can be reused anywhere, in any framework.

That’s the theory, at least.

Let’s try it out. We’ll just be looking at Custom Elements, the heart of Web Components. 

more...
No comment yet.
Scoop.it!

Choosing Your Javascript Framework

Choosing Your Javascript Framework | JavaScript for Line of Business Applications | Scoop.it

The Model handles data and business logic
The View presents data to users through format and layout
The Controller receives user requests and calls back to the model to select a proper view

Allowing for clear separation between the presentation (UI) and application logic

Enabling easier maintainability and clarity.

more...
No comment yet.
Scoop.it!

Getting started with TypeScript in AngularJS application

Getting started with TypeScript in AngularJS application | JavaScript for Line of Business Applications | Scoop.it

We are going to build a very simple AngularJS application using TypeScript. This application will have one view with a button named “Get favorite tracks”. On button click it will show a list of tracks, simple enough isn’t it?

I will use visual studio 2013 for creating the demo application, and won’t use any REST API to keep it short.

more...
No comment yet.
Scoop.it!

Coming to React from Angular

Coming to React from Angular | JavaScript for Line of Business Applications | Scoop.it
My friends started using it, Stride clients started asking for it, and it's
been getting serious buzz on the internet. So I realized it was time for me
to learn React.
more...
No comment yet.
Scoop.it!

ANNE Stack - Angular JS, Node, Neo4J and Express

ANNE Stack - Angular JS, Node, Neo4J and Express | JavaScript for Line of Business Applications | Scoop.it
Learn how Graph DB, Node JS, Angular and Express can be used to create next generation application. This article introduces you to the ANNE Stack – Angular JS, Neo 4J, Node Js and Express
more...
No comment yet.
Scoop.it!

Testing AngularJS Page with Protractor

Testing AngularJS Page with Protractor | JavaScript for Line of Business Applications | Scoop.it

In this tip, I would like to describe how to perform E2E (End to End) Test using Protractor for an Angular JS page/site.

more...
No comment yet.
Scoop.it!

Webinar Replay: A Single-Page Application with Spring Security and Angular JS

Spring Security, Spring Boot and Angular JS all have nice features for making it really easy to produce modern applications, so there is potentially a lot of value in making them work together very smoothly. Things to consider are cookies, headers, native clients, various security vulnerabilities and how modern browser technology can help us to avoid them. 

In this session we show how nice features of the component frameworks can be integrated simply to provide a pleasant and secure user experience. We start with a very basic single-server implementation and scale it up in stages, splitting out backend resources and authentication to separate services. The final state includes a simple API Gateway on the front end implemented declaratively using Spring Cloud, and using this we are able to neatly sidestep a lot of the problems people encounter securing a javascript front end with a distributed back end. 

more...
No comment yet.
Scoop.it!

Mithril vs. Angular vs. React

Mithril vs. Angular vs. React | JavaScript for Line of Business Applications | Scoop.it

The Mithril authors are brilliant and onto something with their tiny 5KB, easy-to-learn JavaScript MVC library.

Mithril gives you hierarchical MVC, URL routing, customizable data binding, and safe-by-default templates with intelligent DOM diff-ing for high-performance rendering. And unlike other frameworks, Mithril does not require you to extend from base classes, allowing you to structure your code however you prefer. Mithril is orthogonal to the module system and compiled syntaxes you use, so you are free to use ES3, ES5 or ES6, asynchronous module definitions, commonJS modules, browserify, TypeScript, sweet.js, babel.js, browserify, and so on.

more...
No comment yet.
Scoop.it!

Fixing Memory Leaks in AngularJS and other JavaScript Applications

Fixing Memory Leaks in AngularJS and other JavaScript Applications | JavaScript for Line of Business Applications | Scoop.it

Dealing with memory leaks in JavaScript applications can be a complex process. In this article I'm going to show you how to identify whether you have memory leaks, analyse them and ultimately resolve them.

I'm using an AngularJS application to demonstrate the concepts and approaches, but much of this material applies to any JavaScript application.


Contents:

  • Understanding Memory Leaks What is a Memory Leak? Why is a Memory Leak Bad?
  • Identifying Memory Leaks Method 1: The Wrong Way Method 2: The Timeline Method 3: Recording Heap Allocations Method 4: Heap Snapshots
  • Analysing Memory Leaks Analysing the leak in Scenario 2 More on Graphs
  • Fixing Memory Leaks Three golden rules Anti-patterns to avoid
  • The Future Weak Maps AngularJS 2 Even Better Browsers
  • Appendices Thanks Mysteries Futher Reading
more...
No comment yet.