Category: Javascript

Sharing data between ReactJS components with RxJS
Sharing data using RxJS observables… read more

Basic ReactJS Routing
ReactJS Routing including route params… read more

New ES2021 Features
Here's some of the new ES2021 features.… read more

Handling loading and error states with Angular’s async pipe
How to deal with loading and error states when using the Angular async pipe… read more

Sorting object arrays by property values
How to sort an object array by a property values in JavaScript… read more

Reloading components when route parameters change in Angular
A simple way to reload component data when route params change in Angular… read more

Creating an ‘Add to Calendar’ link in React
Creating a cross browser .ics link with a 15 minute alert/reminder in React … read more

Google Analytics (gTag) and Angular
Adding Google Analytics (gTag) to an Angular 8 application… read more

Running Angular unit tests in headless Chrome
Setting up Karma to run unit tests in headless chrome… read more

Angular nested template forms.
Giving child components access to the parent form object… read more

Testing a failed api response when unit testing Angular/Ionic apps
Two methods for unit testing failed api responses in Angular applications… read more

Mocking Ionic Platform for Ionic 2 Unit Tests
How to mock 'ionic-angular' Platform… read more

SpyOn NavController.setRoot() in Ionic 2
Mock out and spyOn NavController.setRoot() in Ionic 2… read more

Mocking out NavParams in Ionic 2 unit tests
Solving the "Failed: Can't resolve all parameters for NavParams: (?)" error… read more

Angular 2 Unit Testing Errors & Solutions
Solutions to some common Angular 2 unit test errors… read more

Solving the Ionic 2 Unit Testing error “TypeError: null is not an object (evaluating ‘this._scroll.ev’)”
Ionic 2 Unit Testing… read more

spying on Localstorage in Angular 2 Unit Tests
A quick way to mock localstorage in unit tests… read more

Subscribing to Angular 2 Router Events
Executing code on state change in Angular 2 using NavigationStart… read more

Spying on Router.navigate() in Angular 2 Unit Tests
Mocking Router in Angular2… read more