Skip to content
This repository was archived by the owner on Oct 1, 2023. It is now read-only.
This repository was archived by the owner on Oct 1, 2023. It is now read-only.

Question: why I can't start the spinner? #26

Description

@germanger

I've been using a different "way" of creating controllers, so is not exactly as your example.
I can't get the spinner to start:

var myApp = angular.module('myApp', ['ngRoute', 'ui.bootstrap', 'toaster', 'angularSpinner']);

angular.module('myApp').controller('productsController', function($scope, $modal, $http, toaster, usSpinnerService) {

    $scope.hey = "hey!";
    usSpinnerService.spin('loading-products');  // <-- not working, no errors thrown though.
    ...

});

My view is as follows:

  <h1>Products</h1>
  {{hey}}

  <span us-spinner="{radius:30, width:10, length: 16}" spinner-key="loading-products"></span>

"hey is correctly displayed" (just as a reference)

Am I bringing the usSpinnerService service in an incorrect manner?
Thank you.

I though of asking this in stackoverflow but here you can also tag the issue as a question, right? sorry if not.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions