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

fix(alert): allow interpolations with dismiss-on-timeout #4666

Closed
wants to merge 1 commit into from

Conversation

Foxandxss
Copy link
Contributor

Plunker

Fixes #4665

@wesleycho wesleycho added this to the 0.14.3 milestone Oct 20, 2015
$scope.closeable = !!$attrs.close;

if (angular.isDefined($attrs.dismissOnTimeout)) {
var dismissOnTimeout = angular.isDefined($attrs.dismissOnTimeout) ?
$interpolate($attrs.dismissOnTimeout)($scope.$parent) : null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just use $scope.$parent.$eval? Is there something superior with interpolation here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That won't work.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough, PR LGTM then

@bartrail
Copy link

thx for the quick fix

@Foxandxss Foxandxss closed this in de24f46 Oct 20, 2015
@Foxandxss Foxandxss deleted the fix/dismissontimeout branch October 20, 2015 18:31
@jmsunseri
Copy link

Thanks for fixing this!!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants