Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.

Change popover/tooltip-template to evaluate expression #3558

@chrisirhc

Description

@chrisirhc

Must do this before 0.13.0 release, as it would be a breaking change if we do this after release.
Before:

popover-template="template.html"

After

popover-template="'template.html'"

The reason for this is to support $sce trusted urls. In order to pass a trusted URL, one needs to use an expression.

In JS:
$scope.templateUrl = $sce.trustAsResourceUrl('http://good.com/template.html');

In HTML:
popover="templateUrl"

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions