vendredi 11 août 2017

Rare bug with TypeError

Im using a $timeout in my app to show a spinning spinner when a button is clicked. im doing that like this way -> answer

And I have it like this

vm.upShipment = function(){
    vm.test="true";


     vm.saveButtonText = "Saving";
     $timeout(function(){
        vm.test="false";
        vm.saveButtonText = "Save";
    },1000);
...

I tried to solve it by trying all in this question. The directives are injected correctly, But it keeps throwing me the same TypeError.

TypeError: $timeout is not a function




Aucun commentaire:

Enregistrer un commentaire