Posts
All the articles I've posted.
Reference Dom Elements in Angular
Published: at 05:05 PMSometimes you need to reference a DOM element inside an angular template. We can do this with JavaScript using the `document.getElementById('title');`, however this is considered bad practice.
Angular and Jest
Published: at 09:54 PMThe Angular CLI ships with Jasmine and Karma to run unit tests. However, out of the box, the unit tests are a bit slow for my tastes. Using [Jest](https://jestjs.io/) for our unit tests speeds things up and only runs the tests when the component has been changed.
Pre-Render Your Angular App
Published: at 03:06 PMPre-rendering a Single Page Application does not only give the user performance benefits but also allows search engines to successfully crawl your site. This is pretty important for clients who take SEO seriously! Currently, [Angular Universal](https://universal.angular.io) gives you two options, pre-rendering and re-rendering. It has been my experience that using anything but CSS causes issues with Angular Universal. So I've had to come up with other solutions. One such solution is to eject the Angular CLI and add a pre-render plugin to your webpack config.