Home
Ken Dale
Cancel

Quickstart for Creating a Library Using the .NET CLI

The .NET CLI enables quickly scaffolding a new library. Here’s a quickstart of commands to use, substituting My.Sample.Project for your own new project: dotnet new --update-apply mkdir My.Sample.P...

Using SQL Server LocalDB with Travis CI Windows Builds

Travis CI now includes support for Windows builds. It doesn’t have SQL Server LocalDB installed by default currently, but it’s easy to install. Here’s an example Travis CI configuration that instal...

Using JavaScript Promises And async/await Together

async / await in JavaScript are syntactic sugar for Promises. Since it’s syntactic sugar, they can be used interchangeably! Here’s an example: class TestClass { getPromiseValue() { return ...

A Minimal UI Visual Studio Code Configuration

How would you like to go from this: to this: Add the following to your settings, accessible by File → Preferences → Settings. { "editor.codeLens": false, "editor.minimap.enabled": fa...

A Complete Protractor Travis CI Solution for Angular E2E Testing

TL;DR: Example at https://github.com/kendaleiv/angular-testing. Angular uses Protractor for end-to-end (e2e) testing. Protractor performs browser automation tasks using a running copy of your An...

Providing Outdated Browser Notifications Using Angular

Browser-Update.org is useful for notifying users about an outdated web browser. In the case of SPA applications, the experience using an older browser can range from great to completely broken. If...

Resolving Blacklisted RxJS Import TSLint Error

When working with Angular and the Angular CLI, one might import an RxJS Observable as: import { Observable } from 'rxjs'; Later, running TSLint reports This import is blacklisted, import a submo...

TypeScript Constructor Assignment: public and private Keywords

TypeScript includes a concise way to create and assign a class instance property from a constructor parameter. Rather than: class TestClass { private name: string; constructor(name: string) ...

Run Custom Functionality When Angular Http Errors Occur

Angular includes its own functionality for making HTTP requests. When using it, you may want to react to any errors that happen – perhaps to display an on-screen error message. You can achieve tha...

Comparing Angular NgModule and TestBed Side by Side

TestBed’s configureTestingModule method looks similar to NgModule in usage. Check out this side by side example: @NgModule({ | TestBed.configureTestingModule({ ...