我正在使用这个角度脚本
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
但md-input-container未正确显示
使用此标记的最小角度版本是什么?
答案 0 :(得分:0)
只添加angular.js参考不会有md-input-container,你需要添加对angular-material的引用
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="//rawgit.com/angular/bower-material/master/angular-material.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.15/angular.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.15/angular-animate.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.15/angular-aria.js"></script>
<!-- Angular Material Javascript using RawGit to load directly from `bower-material/master` -->
<script src="//rawgit.com/angular/bower-material/master/angular-material.js"></script>
还要将依赖项添加到模块中,
var app = angular.module('app', ['ngMaterial']);
<强> DEMO
强>