Blog

TypeScript and ES6 import syntax

Oliver

When I started using TypeScript for my Angular applications, I was confused about all the different ways with which you could import other modules. import './polyfills.ts'; import { Component } from '@angular/core'; import HomeComponent from './pages/home/home-page.component'; import * as _ from 'lodash'; import assert = require('assert'); At first, I thought that as a programmer you could choose whether you wanted to use curly braces or not, but I quickly found out that that was not the case.

Read More

Angular2 and Spring Boot: Getting Started

Jeroen

Combining Angular2 and Spring Boot is a great way of getting up and running quickly with a new web application. However, it can be challenging to fit all the different pieces together in the beginning. In this blog post we will create a new project that is easy to build and run across different environments.

Read More

Events in Polymer

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

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

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

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

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