Angular Material Tutorial

Angular Material Tutorial

Angular Material is a UI component library for Angular JS developers. Angular Material components help in constructing attractive, consistent, and functional web pages and web applications while adhering to modern web design principles like browser portability, device independence, and graceful degradation. It helps in creating faster, beautiful, and responsive websites. It is inspired by the Google Material Design.


This tutorial is meant for professionals who aspire to learn the basics of Angular Material and how to use it to create faster, beautiful, and responsive websites. This tutorial explains the fundamental concepts of Angular Material.


Before proceeding with this tutorial, you should have a basic understanding of Angular JS, HTML, CSS, JavaScript, Document Object Model (DOM), and any text editor. In addition, it will help if you know how web-based applications work.

Execute Angular Material Online

For most of the examples given in this tutorial, you will find a Try-it option. Use this option to execute your Angular Material programs then and there and enjoy your learning.

Try the following example using the Try-it option available at the top right corner of the following sample code box −

<html lang = "en">
      <link rel = "stylesheet"
         href = "">
      <script src = ""></script>
      <script src = ""></script>
      <script src = ""></script>
      <script src = ""></script>
      <script src = ""></script>
      <script type = "text/javascript">    
         angular.module('firstApplication', ['ngMaterial']);
   <body ng-app = "firstApplication" ng-cloak>
      <md-toolbar class = "md-warn">
         <div class = "md-toolbar-tools">
            <h2 class = "md-flex">HTML 5</h2>
      <md-content flex layout-padding>
         <p>HTML5 is the next major revision of the HTML standard superseding HTML 4.01, 
         XHTML 1.0, and XHTML 1.1. HTML5 is a standard for structuring and presenting 
         content on the World Wide Web.</p>
         <p>HTML5 is a cooperation between the World Wide Web Consortium (W3C) and the Web 
         Hypertext Application Technology Working Group (WHATWG).</p>
         <p>The new standard incorporates features like video playback and drag-and-drop 
         that have been previously dependent on third-party browser plug-ins such as Adobe 
         Flash, Microsoft Silverlight, and Google Gears.</p>