Master (HEAD)

index.html

<html ng-app="masterAngularMaterial">
    <head>
        <!-- This is important (meta) -->
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <!-- Angular and other dependencies -->
        <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.11/angular.min.js"></script>
        <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.11/angular-animate.min.js"></script>
        <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.11/angular-aria.min.js"></script>
        <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.11/angular-messages.min.js"></script>
        <!-- Angular Material -->
        <script src="https://cdn.rawgit.com/angular/bower-material/master/angular-material.min.js"></script>
        <link href="https://cdn.rawgit.com/angular/bower-material/master/angular-material.min.css" rel="stylesheet">
        <script src="/path/to/app.js"></script>
    </head>
    <body>
        <md-content ng-controller="SomeController">
            {{content}}
        </md-content>
    </body>
</html>

app.js

angular.module('masterAngularMaterial', ['ngAnimate', 'ngAria', 'ngMaterial', 'ngMessages'])
    .controller('SomeController', function($scope) {
        $scope.content="Your content here.";
    })

請注意,從 https://raw.githubusercontent.com 匯入將顯示以下錯誤:

拒絕從’ https://raw.githubusercontent.com/angular/bower-material/master/angular-material.min.js ’ 執行指令碼,因為它的 MIME 型別(’text / plain’)不可執行,並且嚴格 MIME 型別檢查已啟用。