Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix some other errors #3

@fidoboy

Description

@fidoboy

In linkify function you must add this:

if (!_str) return "";

before the _str.replace to avoid unexpected errors.

Also, i'm trying to modify the function to add hg-click attribute instead of using the href but i can't understand why it's removed by angular. The function returns the element right, with the ng-click attribute but then it's not rendered on the page. I'm using ng-bind-html="item.text | linkify"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions