Skip to content

1.0.0-alpha.4: "#" parameter (hash value) doesn't update on second time #2742

Closed
@christopherthielen

Description

@christopherthielen
      var transitionCount = 0;
      $transitions.onSuccess({}, function() { transitionCount++; });

      $state.transitionTo('home.item', {id: 'world', '#': 'frag'});
      $q.flush();
      expect($location.hash()).toBe('frag');
      expect(transitionCount).toBe(1);

      $state.transitionTo('home.item', {id: 'world', '#': 'blarg'});
      $q.flush();
      expect($location.hash()).toBe('blarg');
      expect(transitionCount).toBe(2);

The second transition is ignored and transitionCount is 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions