Book Image

Angular 2 Solutions - Intermediate Concepts [Video]

By : Matt Frisbie
Book Image

Angular 2 Solutions - Intermediate Concepts [Video]

By: Matt Frisbie

Overview of this book

<p>Angular 2 introduces an entirely new paradigm for applications, wholly embracing all the newest concepts that are built into the next generation of browsers and cutting away all the fat and bloat from Angular 1. This course plunges directly into the heart of all the most important Angular 2 concepts. Alongside the Angular 2 content, the course covers the new ES6 syntax, Typescript conventions, Web Components, and RxJS observables, among many other brand-new concepts. The second volume of this course will cover the ES6 implementation of Promises and will show you how to integrate them with Angular 2 applications. Once you’ve built a good foundation for the new concepts of Angular 2 from the previous volume, you’ll work with implementing RxJS observables and you’ll understand how to use them effectively. Finally, you’ll learn how to inject dependencies and wrap HTTP APIs with a service. These topics will help you gradually level up your knowledge and move on to the next volume of this course.</p> <h1>Style and Approach</h1> <p>This course follows a recipe-based approach—each recipe presents a unique problem to whose solution is presented in a clear, concise, and step-by-step manner. With practical hands-on guidance in each and every recipe, you'll be able to get to grips with the underlying concepts.</p>
Table of Contents (4 chapters)
Chapter 4
Services, Dependency Injection, and NgModule
Content Locked
Section 4
Injecting a Value as a Service with useValue and OpaqueTokens
Angular 2 provides you with the property of injecting a value instead of service instance. - Define a token and incorporate it into the application module. - Inject token into a component. - View output in the browser.