上一篇:没有了 下一篇:Angular Material概述

Angular Material教程

Angular Material教程

Angular Material教程


Angular Material is a UI component library for Angular JS developers. Angular Material components helps in constructing attractive, consistent, and functional web pages and web apps 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 from Google Material Design.

Audience

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

Prerequisites

在进行本教程之前,您应该对Angular JS,HTML,CSS,JavaScript,文档对象模型(DOM)和任何文本编辑器有一个基本的了解。另外,如果您了解基于Web的应用程序如何工作,这将有所帮助。

在线执行角质材料

对于本教程中给出的大多数示例,您将找到一个Try-it选项。使用此选项即时执行您的角质材料课程,并享受您的学习。

请尝试以下示例,使用以下示例代码框右上角Try-it选项 -

<html lang="en" >
   <head>
      <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/angular_material/1.0.0/angular-material.min.css">
      <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
      <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-animate.min.js"></script>
      <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-aria.min.js"></script>
      <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular-messages.min.js"></script>
      <script src="https://ajax.googleapis.com/ajax/libs/angular_material/1.0.0/angular-material.min.js"></script>
      <script type="text/javascript">    
         angular.module("firstApplication", ["ngMaterial"]);
      </script>
   </head>
   <body ng-app="firstApplication" ng-cloak>
      <md-toolbar class="md-warn">
         <div class="md-toolbar-tools">
            <h2 class="md-flex">HTML 5</h2>
         </div>
      </md-toolbar>
      <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>
      </md-content>
   </body>
</html>

Copyright © 2002-2017 vue5.com 版权所有

Top