我有使用CDN链接的mamp设置角度。如何在本地设置角度?
一切都已经工作的很好,我已经能够使用柔性等。 不过,我想使用这里找到bottomsheet演示:
https://material.angularjs.org/#/demo/material.components.bottomSheet
我试图建立它自己的以及直接从演示中获取代码,当我运行它时,没有任何按钮显示出来,它们只是显示为文本,而且我看到{{alert}}
附加是结果imgur的屏幕截图。 com/9t5I5SY
<div ng-controller="BottomSheetExample">
<p style="padding-left: 20px;">
Bottom sheet can be dismissed with the service or a swipe down.
</p>
<div class="bottom-sheet-demo inset" layout="column" layout-sm="row" layout-align="center">
<md-button class="md-primary" ng-click="showListBottomSheet($event)">
Show as List
</md-button>
<div style="width:50px;"></div>
<md-button class="md-primary" ng-click="showGridBottomSheet($event)">
Show as Grid
</md-button>
</div>
<br/>
<b layout="row" layout-align="center center" layout-margin>
{{alert}}
</b>
</div>
如果任何人都可以告诉我为什么这不起作用我永远在你的债务。
谢谢!
检查您的控制台。你确定你正在加载模板以及示例中提供的JS吗? – pizzasynthesis 2015-03-03 02:22:01
是的,我100%确定我正在加载模板。 但是我确实有两个控制台错误。但他们似乎都与我没有触及的文件有关 这里是一个截图http://imgur.com/Nlo3J6h – 2015-03-03 02:44:25
对不起,我错过了你已经使用MAMP,所以不需要我的第一个建议。但看到我的编辑,并让我知道,如果这有帮助。 – pizzasynthesis 2015-03-03 02:59:03