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

View File

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