O'Reilly logo

Responsive Web Design with AngularJS by Sandeep Kumar Patel

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

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 ...

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