Skip to content

feat(uiSref): add ui-sref-on attribute #1986

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

wms
Copy link
Contributor

@wms wms commented May 23, 2015

Fixes #1863, supersedes #1877

@wms wms closed this May 23, 2015
@wms wms reopened this May 23, 2015
beforeEach(inject(function($rootScope, $compile) {
el = angular.element('<a ui-sref="contacts.item.detail({id: 5})" ui-sref-on="loading = $transition">Details</a>');
scope = $rootScope;
scope.loading = null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@warrenseymour I thought of a way to fix the tests for the 1.0.x thing until we drop support for it:

var _transition = null;
el = angular.element('<a ui-sref="contacts.item.detail({id: 5})" ui-sref-on="load($transition)">Details</a>');
scope.load = function(transition) {
  _transition = transition;
}

Then s/scope.loading/_transition/.

@nateabele nateabele added this to the 1.0.0-preview milestone Aug 19, 2015
@TimonVS
Copy link

TimonVS commented Sep 1, 2015

When will this be merged in?

@stale
Copy link

stale bot commented Jan 24, 2020

This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs.

This does not mean that the issue is invalid. Valid issues
may be reopened.

Thank you for your contributions.

@stale stale bot added the stale label Jan 24, 2020
@stale stale bot closed this Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RFC: Add a ui-sref-resolve directive similar to ui-sref-active(-eq)
4 participants