Building a favorites Ajax widget in Angular

What I will cover in this section is adding the ability for a user to click on a star next to the comic, and then it will be saved to the database, and added it as a Favorite via a widget on the page.

This is what they will see on the search results page:

Building a favorites Ajax widget in Angular

When they click on the Favorites Tab, they see only their Favorites and can remove them:

Building a favorites Ajax widget in Angular

This way you can see and remove Favorites. And since I am using a lot of the same layout, it should save me time.

Getting ready

See the previous recipe for setting up

Get Laravel 5.x Cookbook 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.