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

$location causes infinite digest #12571

@yeerkkiller1

Description

@yeerkkiller1

Steps to reproduce:

  1. Use ng-include
  2. Run window.history.pushState('', '', '?/'); inside the link function of a directive
  3. Use that directive inside an ng-repeat
  4. Set $locationProvider to use html5 mode

The issue can be seen in a fairly simple form here: http://jsbin.com/kapedo/edit?html,console

This is a massive issue, I am not trying to use $location at all. I only set it to html5 mode so it doesn't change my url.

This has the same consequence as #1417, but the source is probably different. $location seems to have a lot of bugs related to its storing of the url and assuming no one else is going to change it. Using $location is not an option, window.history.pushState is being called by a library I have no control over.

At the very least an opt-out for $location should exist, as it is already in AngularJS and any bugs in it are going to mess up the url, even for people who are not using $location.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions