Also habe ich Winkel-, Winkelmaterial-, Winkelarien-, Winkel-Animations-Abhängigkeiten zu meinem System installiert. Ich möchte nur diese aufstrebende Styling-Methode testen. Es scheint, ich bin am Anfang stecken. Kannst du mir sagen, was mit dem Code falsch ist?Eckiges Material
Das sind meine 3 Dateien.
- app.js
- styles.css
- index.html
Meine Ausgabe ist {{}} title1 in der Mitte-oben auf der Webseite.
angular.module('MyApp', ['ngMaterial'])
.controller("MyController", function($scope) {
$scope.title1 = 'Lol';
});
.buttondemoBasicUsage section {
background: #f7f7f7;
border-radius: 3px;
text-align: center;
margin: 1em;
position: relative !important;
padding-bottom: 10px;
}
.buttondemoBasicUsage md-content {
margin-right: 7px;
}
.buttondemoBasicUsage section .md-button {
margin-top: 16px;
margin-bottom: 16px;
}
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="styles.css">
<link rel="stylesheet" type="text/css" href="angular-material.css">
<title>AngularJS</title>
</head>
<body ng-app="MyApp">
<div ng-controller="MyController">
<md-content>
<section layout="row" layout-sm="column" layout-align="center center">
<md-button>{{title1}}</md-button>
</section>
</md-content>
</div>
<script src="app.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-animate.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-aria.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angular_material/0.10.0/angular-material.min.js"></script>
</body>
</html>
Ich habe Ihre Importe repariert (siehe meine Bearbeitung) und es funktioniert. – Christoph
Ich sehe keine Änderungen. : O –
Hmm ok. Siehe meine Antwort – Christoph