渲染角材料组件的问题

时间:2017-03-16 21:02:52

标签: angularjs angular-material

即使包含所有必要的依赖项,我也无法渲染简单的角度材质组件。 HTML

<div ng-app="MyApp" layout="row">
<md-button>Button</md-button>
</div>

JS

angular.module('MyApp', ['ngMaterial']);

以下是包含所有依赖项的链接: https://jsfiddle.net/rxby6cac/3/

困惑......这个简单的代码有什么问题?

1 个答案:

答案 0 :(得分:1)

我已更新了您的fiddle ...很好,问题是加载类型(见下图)。您必须将其更改为加载类型no wrap - <body> 此外,我还注意到您使用的是角质材料RC(候选版本)。建议尝试使用稳定版本(move to 1.1.3)。

enter image description here

相关问题