O'Reilly logo

AngularJS Directives by Alex Vanston

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

We're not just talking about a lot of APIs

Often, when a backend developer first begins working on a frontend project, they believe that they can simply create an awesome API in the backend, call it with the frontend code, and have a complete frontend web application. When I first started developing frontend web applications, I wrote a lot of code that looked like the following:

$('#nextLink').click(function () {
  $.get('api/next', function (nextPage) {
    displayPage(nextPage);
  })
});

While the frontend technically handles both the user interaction ($('#nextLink').click()), and the display (displayPage(nextPage)), the real driver here is the backend API. The API handles the logic, the state, and makes nearly all the decisions about how the application ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required