My experience with Angular 4 and server-side rendering using platform-server

Let me first state that I’m a professional Angular 1.x developer. I know Angular inside and out, and have fully grasped many of the complexities within Angular’s framework. However, I have little to no experience with Angular 2+, so I decided to try the latest Angular 4 code with robwormald’s ng-universal demo. The intent was to create a simple website with server-side rendering and a couple of minor AJAX service requests.

Read More

Making Brother Scanner Drivers work with Ubuntu 16.10

I have a Brother HL-2280DW network printer which is also a scanner, as many printers are nowadays. Brother, to their benefit, has decent Linux drivers and the printers are great for their reliability. The problem people have recently had, from around the Ubuntu 16.04 release is that the scanner drivers no longer work for some people. Hopefully this article can help guide people to the right solution.

Read More

Similarities between Angular 2+ objects and Angular 1 objects

This article will attempt to draw similarities between the various Angular scaffold types in regards to Angular 1 and Angular 2+ (known as AngularJS). The sections will be separated by Angular 2+ scaffold types, while the similar Angular 1 types will be described within each section.

Read More

Testing AngularJS Templates, Directives, Controllers, Services, Factories, and Filters

Angular is a framework that offers impressive testing ability through unit tests and template-based testing, which we will consider template-based unit testing.

Read More

Common Jasmine Matchers for AngularJS

Below are some useful matchers for AngularJS testing. Add them to a file called “matchers.js” and be sure to add that file to your test runner.

Read More

A better safeApply with Angular 1.5

Many of you might have run into this error at some point in time:

Error: $digest already in progress

This is typically created when someone calls $scope.$apply() in the middle of their code. Angular can be finicky about calling $apply when the $digest loop (2) is being executed. The error is essentially saying “I’m already $applying a bunch of stuff, I can’t add any more to the list right now.”

Read More

Sass Guidelines

These are some general guidelines to writing effective Sass. The same information applies in general to Less, and to some extent CSS, however CSS won’t have the ability to nest selectors like Sass or Less.

Read More