Home » Archives for Juri Strumpflohner

Author Archives: Juri Strumpflohner

Debugging Angular 2 Applications from the Console

Learn how to access useful information from your Angular 2 components right from your browser’s console There have been some quite useful articles for how to debug Angular 1.x applications from the browser’s console. But how can we achieve the same in Angular 2? Is there even a way? Let’s see. I always found it quite neat how to debug ...

Read More »

Learning Angular 2: Creating a tabs component

A follow up on thoughtram’s excellent article on creating a tabs components with Angular 2 This is a follow-up article of thoughtram’s excellent article on developing a tabs component with Angular 2, where we’re going to explore an alternative way of creating a tab component by learning about @ContentChildren and AfterContentInit. That said, definitely read thoughtram’s article on how to ...

Read More »

Learning Angular 2 – Conditionally add styles to an element

Here we’re going through a couple of ways to conditionally apply some styles to a DOM element in Angular 2. Directly manipulating styles property A rather unconventional way would be to return the styling property as a string and then to directly set it on the desired element: //our root app component import {Component} from 'angular2/core' @Component({ selector: 'my-app', providers: ...

Read More »

Multi Content Projection aka Multiple Transclusion

How named/multi-slot transclusion works in Angular 2 If you’re an Angular developer, I’m sure you heard about transclusion. Sounds really weird and mysterious, at least that’s what I thought when I first heard it. If you google for it, you’ll probably land on one of Thoughtram’s articles (as you’ll do 90% of the time if you search for Angular articles ...

Read More »

Improve your Angular 1.x startup time

This neat and simple trick originally appeared about a year ago on this blog post, so it’s not something I came up with by myself. Angular’s watcher functions for ng-bind and text nodes () put binding information inside the respective DOM elements using jQuery .data method. This is unfortunately a very expensive operation that impacts both load times and time ...

Read More »

Componentizing Workflow for Angular 2

A possible (mental) workflow to split up your static HTML into components Yesterday I wrote a tweet about how I usually create components. Great workflow for refactoring unwieldy components :-) https://t.co/each4c2cm9 — Kent C. Dodds (@kentcdodds) December 9, 2015 A tweet is quite short, so let’s take a closer look at such workflow in more detail. Also, note that I’m ...

Read More »

Follow-up-EvolvingPublication

Martin Fowler just published a “Bliki” article on his site about EvolvingPublication. This is a concept I’ve been using for a while now by myself and found it very useful. Here’s my follow-up to this article.   Good articles have to be concise and deliver their core message quickly. People don’t have time, time to read but also time to ...

Read More »

Preparing for Angular 2

I’m sure you heard about Angular 2 and that it will be totally different. Forget everything you know and start from scratch . Jokes apart, if you have taken a closer look you already know that, yes, it will be new, things will be different (as it’s mostly the case with new stuff), but many concepts will still be there. ...

Read More »

Screencast: TypeScript – Setup Your Working Environment

First of all, this is my first screencast ever, so be patient. The idea is to quickly demonstrate how you can setup your working environment s.t. you can start playing around with TypeScript. Enjoy! Reference: Screencast: TypeScript – Setup Your Working Environment from our NCG partner Juri Strumpflohner at the Juri Strumpflohner’s TechBlog blog.

Read More »

REST API Design – Resource Modeling

Important note: this is not something I’ve written up by myself, but it’s rather a summary, some highlighting of the most important quotes with some of my comments for an awesome post on the Thoughtworks blog about API design. Their vision quite accurately reflects what I’ve been doing lately although I did never think about all the concepts in such ...

Read More »