Divotion Blog

Events in Polymer

Published on by Tammo

When playing around in Polymer, we encounter iron signals. Besides normal javascript events, this gives us a lot of options for dealing with events.

Read More

Integrate Angular in Spring Boot with Gradle

Published on by Willem

Having a Angular HTML5 single page application and a Spring Boot application, we would like to serve the complete Angular app from Spring Boot.
This blog shows you a couple simple steps to get everything up and running: run NPM from Gradle, integrate the Gradle frontend build in the main build and support HTML5 mode in the ResourceHandler of Spring Boot.

Read More

Caching HTTP requests in AngularJS

Published on by Niels

In AngularJS, especially when you’re using a ‘modern’ Web Component like approach, you often have directives request the same information from your services multiple times.
Since we’d rather not do round-trips we don’t need to to save on server resources caching is our go-to solution.
In this post I will show two different approaches to caching resources: the built-in angular way using $resource and a home-grown solution.

Read More

AngularConnect 2016 conference report episode 1

Published on by Emil

AngularConnect 2016, held on the September 27th and 28th, was the first Angular conference since the final release of Angular 2.0.
From our company (JDriven) we, 3 front-end loving colleagues, attended this conference and would like to share some of the noteworthy things we’ve learned during the conference.

Read More

"this" in javascript

Published on by Tammo

In object-oriented languages, like Java, this refers to the instance of the class where you run the method.
In javascript this is often also the case, but not always.
In this post we’ll explore some situations.
And I give some tips on how to deal with them. The normal case. The function eat is defined on carrot.
And we simply run it. this will refer to the enclosing object, which is carrot, with name “carrot”.

Read More

Expandable list component for AngularJS (1.5)

Published on by Richard

For several of my projects I required a list where input items could be dynamically added and removed.
Because i saw uses for this over and over i created a component which i’m sharing with you here.
The component ended up like the code below.
Where i used a template generation function in order to create the ul and li elements.
I’m using the angular.element function to create nodes as a method of preference.

Read More

Experiences at Google IO 2016

Published on by Martijn

From May 18-20 myself and Richard attended the Google IO 2016 conference.
We both visited different tracks and have some different experiences we’d like to share.
Here are mine.
Read on about topics in the likes of VR, Progressive Web Apps, and Artificial Intelligence.
For a quick impression have a look at the photo album.

Read More