Upgrading to the latest Angular CLI
As of the Angular CLI beta 30, the command to install Angular CLI looks as follows: npm install -g @angular/cli To get rid of the old version of Angular CLI and install the new one, run the following...
View ArticleAngular 4: Changes in the router
Angular 4 comes with some useful changes in the router. Let’s take a look at the changes in receiving parameters by a route and in the CanDeactivate guard (see here). A route can receive the parameters...
View ArticleYarn package manager: yarn.lock
Yesterday, I was running yet another Angular workshop. After explaining how to install dependencies using npm, I show how to use Yarn (see this blog), a faster alternative to npm, and suggest that the...
View ArticleMy presentations and workshops in 2017
This is a list of presentations and workshops that Yakov Fain offers in 2017. If you’d like to invite Yakov to deliver these talks/workshops at your organization, please send an email at...
View ArticleMigrating your apps from AngularJS to Angular
So you have an Angular JS in prod and you want to migrate it to the latest version of Angular. The first question to answer is why? While talking to our clients, I’ve heard the following answers: – We...
View ArticleRxJS Essentials. Part 2: map, filter, reduce
In the previous article, I introduced the main players or RxJS, and now let’s start getting familiar with RxJS operators. In this article well use the operators map(), filter(), and reduce(). As the...
View ArticleMy books
Books that I authored or co-authored 0. Get programming with TypeScript, Manning Publications, 2019 1. Angular Development with TypeScript, Second Edition, Manning Publications, 2018 2. Angular 2...
View ArticleWrapping a RxJS observable stream into an Angular service
Angular’s dependency injection mechanism allows us to cleanly separate business logic (services) from UI (components). What if our app generates a stream of values and we want to implement it as an...
View ArticleAlways commit your yarn.lock file into the source code repo
I use the Yarn package manager for all my Angular projects. Besides being faster than npm, yarn creates a file yarn.lock that stores the exact versions of installed dependencies. Last year, I wrote...
View ArticleHow to use Facebook
During the last year or so, Facebook is censoring its users. For example, before the US presidential elections, they blocked a respected newspaper New York Post for publishing the info about the...
View Article
More Pages to Explore .....