Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
refactor(demo,subheader): add theme to demo
Browse files Browse the repository at this point in the history
Adding a theme to the demo validates the following issue:
#2093
  • Loading branch information
matthewrfindley authored and ThomasBurleson committed May 22, 2015
1 parent c46ecc4 commit ae9911b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/subheader/demoBasicUsage/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

<div ng-controller="SubheaderAppCtrl" layout="column" flex layout-fill>
<md-content style="height: 600px;">
<md-content style="height: 600px;" md-theme="altTheme">
<section>
<md-subheader class="md-primary">Unread Messages</md-subheader>
<md-list layout-padding>
Expand Down
5 changes: 4 additions & 1 deletion src/components/subheader/demoBasicUsage/script.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@

angular.module('subheaderBasicDemo', ['ngMaterial'])

.config(function($mdThemingProvider) {
$mdThemingProvider.theme('altTheme')
.primaryPalette('purple');
})
.controller('SubheaderAppCtrl', function($scope) {
var imagePath = 'https://material.angularjs.org/img/list/60.jpeg';
$scope.messages = [
Expand Down

0 comments on commit ae9911b

Please sign in to comment.