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...
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...
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...
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...
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 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) ...
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...
TestBed’s configureTestingModule method looks similar to NgModule in usage. Check out this side by side example: @NgModule({ | TestBed.configureTestingModule({ ...
I posted a personal recap last year, and the year before that. For this year, I’m calling it “2016: Personal Highlights”: I received my first Microsoft MVP award in Visual Studio and Developmen...
Angular includes a Title service, which includes getTitle(): string and setTitle(newTitle: string). If you want to keep an in-page header matching the browser title tag, you’ll need something to en...
Here’s a simple template for testing Angular 2 services. If the HttpModule portions are uncommented and used, it will make actual wire calls. To use mock calls instead, see Angular 2 MockBackend S...