Although AngularJS is packed with powerful directives out of the box, often times we want to create our own reusable functionality. In this post, we'll focus on how to tackle the seemingly complex process of creating directives. We'll start with building simple directives and explain the process throughout the post.
To start making your own directive, let's first understand what directives actually are. Directives, in AngularJS are, at their core functions that get run when the DOM is compiled by the compiler.
Using this powerful concept, AngularJS enables us to create new directives that we can encapsulate and simplify DOM manipulation. We can create directives that modify or even create totally new behavior in HTML.
Your new post is loading...