0

I'm not able to render simple angular material components even after including all the necessary dependencies. HTML

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

JS

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

Here's the link with all the dependencies included: https://jsfiddle.net/rxby6cac/3/

Confused... What's the issue with this simple code?

1 Answer 1

1

I've updated your fiddle... it was fine, the problem was the load type (see picture below). You have to change it to load type no wrap - <body>.
Additionally, I've note that your are using a angular material RC (Release Candidate) version. As a advice try to use a stable version (move to 1.1.3).

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.