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.

ng-bind-html with unsafe content #4992

@Freyskeyd

Description

@Freyskeyd

Hey,

I'm currently working on Angular 1.2.
I use backend to generate some complexe menu to display in my view.
I use angular to make binding and other much more easier, but when i want to include my complexe menu in my view, nothing work (ng-click..).

From server (sample example, menu is more complex):

[{
   name: "Item1",
   menu: "<ul><li><a href="#" ng-click="edit(1)"></li><li><a href="#" ng-click="remove(1)"></li></ul>"
}, {...}]

Ng-repeat on item:

<tr ng-repeat="value in serverProv">
    <td>{{value.name}}</td>
    <td ng-bind-html="value.menu"></td>
</tr>

ng-click is not fire and page reload when i click on edit or remove.
I don't know how to do it. How can i make a ng-bind-html-unsafe like?

Thank's

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions