Role of AngularJS

In this section, we will explore the role of AngularJS for responsive web development. Before going into AngularJS, you will learn about responsive web development in general. Responsive web development can be performed in two ways:

  • Using the browser sniffing approach
  • Using the CSS3 media queries approach

Using the browser sniffing approach

When we view web pages through our browser, the browser sends a user agent string to the server. This string provides information like browser and device details. Reading these details, the browser can be redirected to the appropriate view. This method of reading client details is known as browser sniffing.

The browser string has a lot of different information about the source from where the request ...

Get Responsive Web Design with AngularJS now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.