September 2018

Angular 2 Components and Providers: Classes, Factories & Values

  • Satish 

You may have seen “providers” in a list of properties you can use to configure components, and you might have realized that they allow you to define a set of injectable objects that will be available to the component. That’s nice, but it of course begs the question, “what is a provider?” Answering that question gets us into an involved discussion of Angular 2’s Dependency Injection (DI) system. We may specifically cover DI in a future blog post, but it’s… Read More »Angular 2 Components and Providers: Classes, Factories & Values

Angular 2 Components: Inputs and Outputs

  • Satish 

In this article, we’ll take a look a bit closer at Angular 2 components — how they’re defined, and how to get data into them and back out of them. This is the second part in the Angular 2 series. You can read part one here. We covered the basic idea of components and decorators in an earlier article, and have specifically seen the @Component and @View decorators used to build an Angular application. This article dives in a bit deeper. However, we can’t cover… Read More »Angular 2 Components: Inputs and Outputs