Book Image

Responsive Web Design with AngularJS

By : Sandeep Kumar Patel
Book Image

Responsive Web Design with AngularJS

By: Sandeep Kumar Patel

Overview of this book

<p>AngularJS is an open source JavaScript framework, built to create dynamic web applications using HTML, JavaScript, and CSS. AngularJS has many advanced features that can be used to leverage responsive application development.</p> <p>Responsive Web Design with AngularJS follows a detailed step-by-step approach to explain each key concept, with sufficient code and examples. This book will teach you how to implement dynamic routing, responsive custom directives, and breakpoints for your web page, followed by a section on debugging and testing.</p> <p>By the end of the book, you will be able to develop and design exciting single page applications with AngularJS and make the applications responsive on different devices. With ample screenshots and code offering you a detailed insight, this book will ensure your success in developing responsive applications.</p>
Table of Contents (12 chapters)
Responsive Web Design with AngularJS
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Device-based routing


In the device-based routing approach, the requesting devices are identified by the application and client is redirected to the appropriate HTML template. In this approach, different HTML templates are maintained by the application and served to the client. To identify a device the user agent string can be used to detect deviceType. In this chapter, we have used the approach present at http://detectmobilebrowsers.com. It maintains a set of user agent strings for various mobile devices and checks the incoming request against these strings through JavaScript's regular expression.