Category: Javascript
![](https://marclloyd.co.uk/wp-content/uploads/2021/06/react-800x470.jpg)
Sharing data between ReactJS components with RxJS
Sharing data using RxJS observables… read more
![](https://marclloyd.co.uk/wp-content/uploads/2021/06/react-800x470.jpg)
Basic ReactJS Routing
ReactJS Routing including route params… read more
![](https://marclloyd.co.uk/wp-content/uploads/2021/06/js-800x470.jpg)
New ES2021 Features
Here's some of the new ES2021 features.… read more
![](https://marclloyd.co.uk/wp-content/uploads/2021/06/angular-800x470.jpg)
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
![](https://marclloyd.co.uk/wp-content/uploads/2021/06/js-800x470.jpg)
Sorting object arrays by property values
How to sort an object array by a property values in JavaScript… read more
![](https://marclloyd.co.uk/wp-content/uploads/2021/06/angular-800x470.jpg)
Reloading components when route parameters change in Angular
A simple way to reload component data when route params change in Angular… read more
![](https://marclloyd.co.uk/wp-content/uploads/2021/06/react-800x470.jpg)
Creating an ‘Add to Calendar’ link in React
Creating a cross browser .ics link with a 15 minute alert/reminder in React … read more
![](https://marclloyd.co.uk/wp-content/uploads/2021/06/analytics-800x470.jpg)
Google Analytics (gTag) and Angular
Adding Google Analytics (gTag) to an Angular 8 application… read more
![](https://marclloyd.co.uk/wp-content/uploads/2021/06/angular-800x470.jpg)
Running Angular unit tests in headless Chrome
Setting up Karma to run unit tests in headless chrome… read more
![](https://marclloyd.co.uk/wp-content/uploads/2021/06/angular-800x470.jpg)
Angular nested template forms.
Giving child components access to the parent form object… read more
![](https://marclloyd.co.uk/wp-content/uploads/2021/06/ionic-800x470.jpg)
Testing a failed api response when unit testing Angular/Ionic apps
Two methods for unit testing failed api responses in Angular applications… read more
![](https://marclloyd.co.uk/wp-content/uploads/2021/06/ionic-800x470.jpg)
Mocking Ionic Platform for Ionic 2 Unit Tests
How to mock 'ionic-angular' Platform… read more
![](https://marclloyd.co.uk/wp-content/uploads/2021/06/ionic-800x470.jpg)
SpyOn NavController.setRoot() in Ionic 2
Mock out and spyOn NavController.setRoot() in Ionic 2… read more
![](https://marclloyd.co.uk/wp-content/uploads/2021/06/ionic-800x470.jpg)
Mocking out NavParams in Ionic 2 unit tests
Solving the "Failed: Can't resolve all parameters for NavParams: (?)" error… read more
![](https://marclloyd.co.uk/wp-content/uploads/2021/06/angular-800x470.jpg)
Angular 2 Unit Testing Errors & Solutions
Solutions to some common Angular 2 unit test errors… read more
![](https://marclloyd.co.uk/wp-content/uploads/2021/06/ionic-800x470.jpg)
Solving the Ionic 2 Unit Testing error “TypeError: null is not an object (evaluating ‘this._scroll.ev’)”
Ionic 2 Unit Testing… read more
![](https://marclloyd.co.uk/wp-content/uploads/2021/06/angular-800x470.jpg)
spying on Localstorage in Angular 2 Unit Tests
A quick way to mock localstorage in unit tests… read more
![](https://marclloyd.co.uk/wp-content/uploads/2021/06/angular-800x470.jpg)
Subscribing to Angular 2 Router Events
Executing code on state change in Angular 2 using NavigationStart… read more
![](https://marclloyd.co.uk/wp-content/uploads/2021/06/angular-800x470.jpg)
Spying on Router.navigate() in Angular 2 Unit Tests
Mocking Router in Angular2… read more