Day 3: Building Filters and Routes

Today we conclude our exploration of AngularJS by discovering more ways to benefit from AngularJS’s exceptional data binding. In doing so, we’ll wrap up our bookmarking application by adding tags, filtering, and routing. With data binding, it’s not only possible, it’s smooth sailing to implement these features while keeping our components cleanly decoupled. The majority of the code we write focuses on the model; AngularJS takes care of updating the view.

The first thing we’ll do today is improve our application by adding tag list support to the bookmarks. That involves adding an input field for the user to enter the bookmark’s tags (separated by commas) and splitting the string on commas to obtain a list. We ...

Get Seven Web Frameworks in Seven Weeks now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.