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.

Directive isolate scope '=' with JSON in DOM causes $digest to reach max iterations. (But will parse the JSON) #4054

@bobslaede

Description

@bobslaede

Having a directive run on the following html, and trying to to get the JSON object from the attribute breaks.
<foo bar='{"foo":"bar"}'></foo>
The JSON is extracted, but it throws Uncaught Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!

Example bin: http://jsbin.com/UKOMuZi/13/edit

I'm not sure what should happen, either it shouldn't work, and then error, or it should keep working, but not throw an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions