1

我刚刚包含了 Angular 和 Angular Material 的 CDN URL,并尝试使用 Angular Material。但似乎它不起作用。

4

1 回答 1

1
  1. Create a angular module(eg: sampleApp) with ngMaterial as the dependant module.
  2. Use this module ng-app="sampleApp"

Then it will work as expected.

Have a look at the codepen placed at: https://material.angularjs.org/#/getting-started

于 2015-03-04T05:38:55.867 回答