Explore all newline lessons
lesson
How to Build and Run an Angular Backend to Test LocallyThe newline Guide to Angular UniversalIn this lesson you will prepare the application backend an entry gate for communicating with persistance layer and hosting Angular application bundle.
lesson
How to Mock MongDB for Angular End-to-End Unit TestsThe newline Guide to Angular UniversalThis lesson is going to show you how to mock your data-source - MongoDB - for the E2E tests purpose. Thanks to using mongo-unit you will be able to perform actions that changes data in your DB, during E2E testing.
lesson
Build Angular End-to-End Unit Tests With TransferStateThe newline Guide to Angular UniversalIn this lesson you will learn how you can verify the TransferState registry content in your E2E tests.
lesson
How to Unit Test Server-Side Services in Angular KarmaThe newline Guide to Angular UniversalLast but not least of your unit tests, should be to verify the server-specific services. In this lesson you will learn how to enforce Karma to run tests against code that includes server-specific objects and libraries.
lesson
How to Unit Test Slow API Calls in AngularThe newline Guide to Angular UniversalNext step is to simulate a long-running API and verify how server-side Angular deals with it. This lesson will demonstrate you how to do that.
lesson
How to Mock PLATFORM_ID Value for Angular Unit TestingThe newline Guide to Angular UniversalHow to verify your application behavior in different environments? In this lesson you will get to know how you can stub the PLATFORM_ID injection token and HTTP request, for tests purpose.
lesson
5 Angular Performance Optimization TipsThe newline Guide to Angular UniversalFaster! Faster! Faster! In this lesson you will enable gzip compression, defer the CSS, lazy-load images and more. All to make it faster!
lesson
How to Cache Angular With Redis Node.js MiddlewareThe newline Guide to Angular UniversalIn this lesson you will create a Node.JS middle-ware, that will be responsible for caching rendered views inside Redis database.
lesson
How to Install Redis CLI on Windows, Mac, and HerokuThe newline Guide to Angular UniversalFirst things first. Let's install the Redis DB on your machine and provision it in the Heroku environment.
lesson
How to Handle Slow API Calls in AngularThe newline Guide to Angular UniversalLong running API calls can affect your application rendering time, that might lead to the SEO disaster. In this lesson you will learn how you can protect your application against such situation.
lesson
Perform Angular HTTP Calls With TransferHttpCacheModuleThe newline Guide to Angular UniversalNext step is to get know a TransferHttpCacheModule, which provides the TransferState functionality "out of the box" for the HTTP calls.
lesson
Send Server Data to Client With Angular TransferStateThe newline Guide to Angular UniversalSay Hello to TransferState, a key-value registry that is passed along with the application bundle, from the server-side angular to the browser-side part of the application. In this lesson you will learn how frontend can get to know what backend has already do (ie retrieving data from DB); thanks to that you can avoid repeating those steps and offload your application backend.