Leveling Up with Angular
Angular is a deep technology, and what you’ve mostly seen here is how to use it for tasks you’d normally use JQuery for, and how it makes that code simpler and cleaner. As you create more advanced user interfaces, you’ll benefit from additional features Angular provides for organizing your code.
Creating Reusable Markup with Directives
Suppose we want to add a header to our customer details page that looks like the search results component we created in Chapter 4, Create Clean Search Results with Bootstrap Components. In Rails, we can accomplish this via a partial. In Angular, we can create our own directive that can act as a partial.
Angular directives are highly complex. They aren’t just for sharing markup, but ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access