Error string.split solucionado

This commit is contained in:
Vicente Falco 2017-02-03 12:18:08 +01:00
parent 4c9574d3e3
commit fb132f0e5c
2 changed files with 4 additions and 5 deletions

View File

@ -13,7 +13,7 @@ export function directive(resolve) {
enable: '='
},
template: function(element, attrs) {
return resolve.getTemplate(_NAME, attrs);
return resolve.getTemplate(_NAME, attrs);
},
controller: controller
}
@ -27,12 +27,12 @@ function controller($scope, $element) {
this.start = function() {
spinner.MaterialSpinner.start();
}
};
this.stop = function() {
spinner.MaterialSpinner.stop();
}
};
$scope.$watch('enable', (newValue) => {
$scope.$watch('enable', newValue => {
if (newValue)
this.start();
else

View File

@ -1,5 +1,4 @@
<div
class="mdl-spinner mdl-spinner--single-color mdl-js-spinner"
ng-class="enable"
*[foo]*>
</div>