md-input-container 似乎不适用于 angular 1.3.14
md-input-container does not seem to be working on angular 1.3.14
我正在使用这个 angular 脚本
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
但是 md-input-container 没有正确显示
使用此标签的最低 angular 版本是什么?
仅添加 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']);
我正在使用这个 angular 脚本
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
但是 md-input-container 没有正确显示
使用此标签的最低 angular 版本是什么?
仅添加 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']);