Error string.split solucionado
This commit is contained in:
parent
4c9574d3e3
commit
fb132f0e5c
|
@ -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
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
<div
|
||||
class="mdl-spinner mdl-spinner--single-color mdl-js-spinner"
|
||||
ng-class="enable"
|
||||
*[foo]*>
|
||||
</div>
|
Loading…
Reference in New Issue