Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

feat($location): Location change notifications can now be skipped #2398

Closed
wants to merge 1 commit into from

Commits on Apr 13, 2013

  1. feat($location): Location change notifications can now be skipped

    This adds a new method `notify` to `$location` that allows updating the
    location without triggering `$locationChangeStart`/`$locationChangeSuccess`
    events.
    
    The method is chainable and must be called with a boolean parameter. Any
    falsy value will disable the notification procedure and will block any
    route update that may apply.
    
    The skip flag will be reset after any digest cycle, so it must be set again
    on any subsequent change if needed.
    
    Example: `$location.path('/client/2').replace().notify(false);`
    
    Closes angular#1699
    lrlopez committed Apr 13, 2013
    Configuration menu
    Copy the full SHA
    c7e719b View commit details
    Browse the repository at this point in the history