|
1 | 1 | 'use strict'; |
2 | 2 |
|
3 | 3 | angular.module('angularMaterialAdmin', ['ngAnimate', 'ngCookies', 'ngTouch', |
4 | | - 'ngSanitize', 'ui.router', 'ngMaterial', 'app']) |
| 4 | + 'ngSanitize', 'ui.router', 'ngMaterial', 'googlechart', 'app']) |
5 | 5 |
|
6 | 6 | .config(function ($stateProvider, $urlRouterProvider, $mdThemingProvider, |
7 | 7 | $mdIconProvider) { |
@@ -84,34 +84,4 @@ angular.module('angularMaterialAdmin', ['ngAnimate', 'ngCookies', 'ngTouch', |
84 | 84 | .defaultIconSet('assets/images/icons.svg', 128) |
85 | 85 | .icon('menu', 'assets/images/menu.svg', 24) |
86 | 86 | .icon('user', 'assets/images/user.svg', 64); |
87 | | - }) |
88 | | - |
89 | | - |
90 | | - .directive('panelWidget', function() { |
91 | | - return { |
92 | | - restrict: 'E', |
93 | | - replace: true, |
94 | | - transclude: true, |
95 | | - scope: { title: '@', template: '@', options: '@' }, |
96 | | - template: '' + |
97 | | - '<section layout-margin class="md-whiteframe-z1">' + |
98 | | - ' <md-toolbar md-theme="white" class="panel-widget">' + |
99 | | - ' <div class="md-toolbar-tools">' + |
100 | | - ' <h3>{{title}}</h3>' + |
101 | | - ' <span flex></span>' + |
102 | | - ' <md-button ng-show="options" ng-click="$showOptions = !$showOptions" class="md-icon-button" aria-label="Show options">' + |
103 | | - ' <md-icon md-svg-icon="show"></md-icon>' + |
104 | | - ' </md-button>' + |
105 | | - ' </div>' + |
106 | | - ' </md-toolbar>' + |
107 | | - ' <div ng-include="template"/>' + |
108 | | - '</section>', |
109 | | - compile: function(element, attrs, linker) { |
110 | | - return function(scope, element) { |
111 | | - linker(scope, function(clone) { |
112 | | - element.append(clone); |
113 | | - }); |
114 | | - }; |
115 | | - } |
116 | | - }; |
117 | 87 | }); |
0 commit comments