10 TypeScript Features You Might Not Know · Moin World!

Recently TypeScript is increasingly gaining popularity and companies like Slack are praising their move to TypeScript. But with TypeScript shipping monthly updates to the language and its tools even a regular TypeScript developer might lose track of what is being added.

Here is a list of 10 of my favorite recent additions to the language since version 2.X:

Source: 10 TypeScript Features You Might Not Know · Moin World!

Angular: Angular Material Status Update

In the six months since our last post about Angular Material, the team been hard at work building cool new components and applying a heaping of polish. Some of the highlights include:

  • Datepicker, expansion panel, and accordion components
  • Improved support for @angular/platform-server
  • Configurable scrolling strategies for Overlays
  • Strict-null checks and no-unused-params compliance
  • Typography extension to theming
  • Live theme-picker on material.angular.io
  • Lots and lots of bug fixes

Source: Angular: Angular Material Status Update

Creating Reusable Components with NgTemplateOutlet in Angular

The single responsibility principle is the idea that pieces of your app should have one purpose. Following this principle makes your Angular app easier to test and develop. In this post we will be breaking a CardOrListViewComponent into 🐊 bite-sized pieces with the help of NgTemplateOutlet. Using NgTemplateOutlet instead of creating specific components allows for components to be easily modified for various use cases without having to modify the component itself!

Source: Creating Reusable Components with NgTemplateOutlet in Angular

The New Chrome DevTool Feature You Want to Know About

The Chrome development teams work on features and improvements that make our browsing and developing experience better. The Google I/O 2017conference took place at April and there are significant tidings. A part of them is about the DevTool, so it affects us as web developers that use chrome. Chrome 60 is coming with many new features and changes in the DevTool. The “WOW” feature is the new Audits panels.

Source: The New Chrome DevTool Feature You Want to Know About

ViewChildren and ContentChildren in Angular – Minko Gechev’s blog

In this article I’m going to explain the difference between the concepts of view children and content children in Angular. We will take a look at how we can pass access these two different kinds of children from their parent component. Along the content we are also going to mention what the difference between the properties providers and viewProviders of the @Component decorator is.

Source: ViewChildren and ContentChildren in Angular – Minko Gechev’s blog

Error Handling in RxJs

In this post I will talk about error handling in complex RxJs streams.

The easiest way to trap errors in RxJs is to add an error callback in the subscribe call.

While this is super simple, this approach has a few shortcomings. The main issue is that if you let an error propagate up to the “catch all” handler, the underlying observable is terminated in the process.

Source: Error Handling in RxJs