If you've been using Angular (1.x, it isn't going nowhere for a long time) for a while now, you've no doubt used your share of directives. But have you ever written one? The idea of encapsulating appearance and behavior for a web component was the strength behind ASP.NET Web Forms with its reusable WebControl model. When the Microsoft Web stack became dominated by ASP.NET MVC, the WebControl world was replaced by HTML helpers, but writing custom ones wasn't popular. With Angular in the forefront of rich web applications, there is yet another good web model, but this one allows the same kind of custom encapsulated, reusable components as WebControls did for Web Forms. This session will take you from zero to sixty on what directives are and what you need to get going quickly writing them, and why. You'll have more than enough groundwork covered to keep going later with all the great sources for this on the web.
You will learn:
- About the purpose of encapsulated components
- About setting up basic directives
- About adding more advanced functionality