Book Image

Angular 2 Core Concepts [Video]

By : Matt Frisbie
Book Image

Angular 2 Core Concepts [Video]

By: Matt Frisbie

Overview of this book

<p>Angular 2 introduces an entirely new paradigm of applications. It wholly embraces all the newest concepts that are built into the next generation of browsers, and it cuts away all the fat and bloat from Angular 1. This course plunges directly into the heart of all the most important Angular 2 concepts.</p> <p>This course helps you to migrate from Angular 1 application to Angular 2, familiarizes you with the Angular 2 components and covers the reworked Angular 2 form modules in depth.</p> <h1>Style and Approach</h1> <p>This course follows a solution-based approach, where each video presents a unique problem and solution 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 concepts.</p>
Table of Contents (3 chapters)
Chapter 2
Conquering Components and Directives
Content Locked
Section 6
Attaching Behaviorto DOM Elements with Directives
In the course of creating applications, you will often find it useful to be able to attach component-stylebehavior to DOM elements, but without the need to have templating. - Define the basic class that will power the attribute directive - Decorate the ClickToRevealDirective class and add the attribute to the element - Provide Article component with the ability to attach itself to click events